Add constant for default visibility type

This commit is contained in:
Ramon Wenger 2021-02-22 14:31:27 +01:00
parent 322d7725f2
commit 6bab4320ec
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
import me from '@/mixins/me';
import {TYPES} from '@/consts/types';
import {TYPES, CONTENT_TYPE} from '@/consts/types';
import {createVisibilityMutation, hidden} from '@/helpers/visibility';
export default {
@ -31,7 +31,7 @@
},
type: {
type: String,
default: 'content',
default: CONTENT_TYPE,
validator: value => {
// value must be one of TYPES
return TYPES.indexOf(value) !== -1;