logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: f4b36a9ebf99cc69ab93c148e488401daf3713b7
parent 67319d0e5b0b36a440dcaf35119e41046cc6e3fd
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 28 Feb 2022 18:15:21 +0200

fix errors in choicesetting

Diffstat:

Msrc/components/settings_modal/helpers/choice_setting.js7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/settings_modal/helpers/choice_setting.js b/src/components/settings_modal/helpers/choice_setting.js @@ -1,10 +1,12 @@ import { get, set } from 'lodash' import Select from 'src/components/select/select.vue' import ModifiedIndicator from './modified_indicator.vue' +import ServerSideIndicator from './server_side_indicator.vue' export default { components: { Select, - ModifiedIndicator + ModifiedIndicator, + ServerSideIndicator }, props: [ 'path', @@ -28,6 +30,9 @@ export default { defaultState () { return get(this.$parent, this.pathDefault) }, + isServerSide () { + return this.path.startsWith('serverSide_') + }, isChanged () { return !this.path.startsWith('serverSide_') && this.state !== this.defaultState },