fix after save behaviour

This commit is contained in:
einhorn_b 2024-01-16 12:17:50 +01:00
parent 939ea795e8
commit cc617eb827

View File

@ -27,7 +27,7 @@
<b-list-group-item v-if="!item.foreign">
{{ $t('federation.gmsApiKey') }}&nbsp;
<editable-label
:value="item.gmsApiKey"
:value="gmsApiKey"
:allowEdit="$store.state.moderator.roles.includes('ADMIN')"
@save="handleSaveGsmApiKey"
/>
@ -79,8 +79,12 @@ export default {
formatDistanceToNow,
locale: this.$i18n.locale,
details: false,
gmsApiKey: '',
}
},
created() {
this.gmsApiKey = this.item.gmsApiKey
},
computed: {
verified() {
return (
@ -131,6 +135,7 @@ export default {
this.details = !this.details
},
handleSaveGsmApiKey(gmsApiKey) {
this.gmsApiKey = gmsApiKey
this.$apollo
.mutate({
mutation: updateHomeCommunity,