moved multiChoiceProperties where it fits better
This commit is contained in:
parent
a14635f4f2
commit
5187b37aca
|
@ -1,10 +1,9 @@
|
||||||
import { filter, trim } from 'lodash'
|
import { filter, trim } from 'lodash'
|
||||||
import { instanceDefaultProperties, defaultState as configDefaultState } from 'src/modules/config.js'
|
import {
|
||||||
|
instanceDefaultProperties,
|
||||||
const multiChoiceProperties = [
|
multiChoiceProperties,
|
||||||
'postContentType',
|
defaultState as configDefaultState
|
||||||
'subjectLineBehavior'
|
} from 'src/modules/config.js'
|
||||||
]
|
|
||||||
|
|
||||||
const SharedComputedObject = () => ({
|
const SharedComputedObject = () => ({
|
||||||
user () {
|
user () {
|
||||||
|
|
|
@ -3,6 +3,16 @@ import { setPreset, applyTheme } from '../services/style_setter/style_setter.js'
|
||||||
|
|
||||||
const browserLocale = (window.navigator.language || 'en').split('-')[0]
|
const browserLocale = (window.navigator.language || 'en').split('-')[0]
|
||||||
|
|
||||||
|
/* TODO this is a bit messy.
|
||||||
|
* We need to declare settings with their types and also deal with
|
||||||
|
* instance-default settings in some way, hopefully try to avoid copy-pasta
|
||||||
|
* in general.
|
||||||
|
*/
|
||||||
|
export const multiChoiceProperties = [
|
||||||
|
'postContentType',
|
||||||
|
'subjectLineBehavior'
|
||||||
|
]
|
||||||
|
|
||||||
export const defaultState = {
|
export const defaultState = {
|
||||||
colors: {},
|
colors: {},
|
||||||
theme: undefined,
|
theme: undefined,
|
||||||
|
|
Loading…
Reference in New Issue