mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
allow to cancel editing link
This commit is contained in:
parent
d200b822db
commit
22c673f47e
@ -54,6 +54,9 @@
|
||||
<ds-button primary :disabled="disabled">
|
||||
{{ editingLink === '' ? $t('settings.social-media.submit') : $t('actions.save') }}
|
||||
</ds-button>
|
||||
<ds-button v-if="editingLink !== ''" ghost @click="handleCancel()">
|
||||
{{ $t('actions.cancel') }}
|
||||
</ds-button>
|
||||
</ds-space>
|
||||
</ds-space>
|
||||
</ds-card>
|
||||
@ -99,6 +102,11 @@ export default {
|
||||
...mapMutations({
|
||||
setCurrentUser: 'auth/SET_USER',
|
||||
}),
|
||||
handleCancel() {
|
||||
this.editingLink = ''
|
||||
this.formData.socialMediaLink = ''
|
||||
this.disabled = true
|
||||
},
|
||||
async handleInput(data) {
|
||||
this.disabled = true
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user