fix errors in choicesetting
This commit is contained in:
parent
67319d0e5b
commit
f4b36a9ebf
1 changed files with 6 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
import { get, set } from 'lodash'
|
import { get, set } from 'lodash'
|
||||||
import Select from 'src/components/select/select.vue'
|
import Select from 'src/components/select/select.vue'
|
||||||
import ModifiedIndicator from './modified_indicator.vue'
|
import ModifiedIndicator from './modified_indicator.vue'
|
||||||
|
import ServerSideIndicator from './server_side_indicator.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Select,
|
Select,
|
||||||
ModifiedIndicator
|
ModifiedIndicator,
|
||||||
|
ServerSideIndicator
|
||||||
},
|
},
|
||||||
props: [
|
props: [
|
||||||
'path',
|
'path',
|
||||||
|
@ -28,6 +30,9 @@ export default {
|
||||||
defaultState () {
|
defaultState () {
|
||||||
return get(this.$parent, this.pathDefault)
|
return get(this.$parent, this.pathDefault)
|
||||||
},
|
},
|
||||||
|
isServerSide () {
|
||||||
|
return this.path.startsWith('serverSide_')
|
||||||
|
},
|
||||||
isChanged () {
|
isChanged () {
|
||||||
return !this.path.startsWith('serverSide_') && this.state !== this.defaultState
|
return !this.path.startsWith('serverSide_') && this.state !== this.defaultState
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue