{"size": 604, "ext": "js", "max_stars_repo_path": "resources/js/common/Mixin/Global/StatusMixin.js", "max_stars_repo_name": "MohsinAliJaved/payday", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/common/Mixin/Global/StatusMixin.js", "max_issues_repo_name": "MohsinAliJaved/payday", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/common/Mixin/Global/StatusMixin.js", "max_forks_repo_name": "MohsinAliJaved/payday", "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": 22.3703703704, "max_line_length": 75, "alphanum_fraction": 0.4254966887}
import {mapState} from "vuex";

export default {

    computed: {
        ...mapState({
            statuses: state => state.support.statuses
        }),
        statusObjectWatcher() {
            return this.statuses.length
        }
    },
    watch: {
        statusObjectWatcher: {
            handler: function (length) {
                if (length) {
                    this.options.filters.find(({key, option}) => {
                        if (key === 'status') option.push(...this.statuses)
                    })
                }
            },
            immediate: true
        }
    }

}
