mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix after save behaviour
This commit is contained in:
parent
939ea795e8
commit
cc617eb827
@ -27,7 +27,7 @@
|
|||||||
<b-list-group-item v-if="!item.foreign">
|
<b-list-group-item v-if="!item.foreign">
|
||||||
{{ $t('federation.gmsApiKey') }}
|
{{ $t('federation.gmsApiKey') }}
|
||||||
<editable-label
|
<editable-label
|
||||||
:value="item.gmsApiKey"
|
:value="gmsApiKey"
|
||||||
:allowEdit="$store.state.moderator.roles.includes('ADMIN')"
|
:allowEdit="$store.state.moderator.roles.includes('ADMIN')"
|
||||||
@save="handleSaveGsmApiKey"
|
@save="handleSaveGsmApiKey"
|
||||||
/>
|
/>
|
||||||
@ -79,8 +79,12 @@ export default {
|
|||||||
formatDistanceToNow,
|
formatDistanceToNow,
|
||||||
locale: this.$i18n.locale,
|
locale: this.$i18n.locale,
|
||||||
details: false,
|
details: false,
|
||||||
|
gmsApiKey: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.gmsApiKey = this.item.gmsApiKey
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
verified() {
|
verified() {
|
||||||
return (
|
return (
|
||||||
@ -131,6 +135,7 @@ export default {
|
|||||||
this.details = !this.details
|
this.details = !this.details
|
||||||
},
|
},
|
||||||
handleSaveGsmApiKey(gmsApiKey) {
|
handleSaveGsmApiKey(gmsApiKey) {
|
||||||
|
this.gmsApiKey = gmsApiKey
|
||||||
this.$apollo
|
this.$apollo
|
||||||
.mutate({
|
.mutate({
|
||||||
mutation: updateHomeCommunity,
|
mutation: updateHomeCommunity,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user