fixed sharing pref saving

This commit is contained in:
vabene1111
2022-10-31 19:51:01 +01:00
parent bc9d077b9d
commit c2c08391cc
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<b-form-group :label="$t('Share')" :description="$t('plan_share_desc')">
<generic-multiselect
@change="updateSettings(false)"
@change="user_preferences.plan_share = $event.val;updateSettings(false)"
:model="Models.USER"
:initial_selection="user_preferences.plan_share"
label="display_name"
@ -57,7 +57,7 @@ export default {
let apiFactory = new ApiApiFactory()
apiFactory.partialUpdateUserPreference(this.user_id.toString(), this.user_preferences).then(result => {
StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE)
if (reload !== undefined) {
if (reload) {
location.reload()
}
}).catch(err => {

View File

@ -2,7 +2,7 @@
<div v-if="user_preferences !== undefined">
<b-form-group :label="$t('shopping_share')" :description="$t('shopping_share_desc')">
<generic-multiselect
@change="updateSettings(false)"
@change="user_preferences.shopping_share = $event.val; updateSettings(false)"
:model="Models.USER"
:initial_selection="user_preferences.shopping_share"
label="display_name"