{"size": 468, "ext": "js", "max_stars_repo_path": "src/mixins/mixins.js", "max_stars_repo_name": "lyndonkieljerymiah/MyVue2Package", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/mixins/mixins.js", "max_issues_repo_name": "lyndonkieljerymiah/MyVue2Package", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/mixins/mixins.js", "max_forks_repo_name": "lyndonkieljerymiah/MyVue2Package", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.7142857143, "max_line_length": 39, "alphanum_fraction": 0.3782051282}
export const toggleModal = {
    data() {
        return {
            toggle: false
        }
    },
    beforeMount() {
        this.open();
    },
    methods: {
        openDialog() {
            this.toggle = true;
        },
        closeDialog() {
            this.toggle = false;
        },
        toggleDialog() {
            this.toggle = !this.toggle;
        }
    },
    watch: {
        toggle(nv) {
            if(!nv) this.close();
        }
    }
}

