mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 14:02:09 +02:00
Fix Edit group link not pointing to the defined route url
This commit is contained in:
parent
a96a1cef05
commit
22994ed1f2
@ -19,7 +19,7 @@
|
||||
{{ $t('commons.delete') }}
|
||||
</button>
|
||||
<!-- edit link -->
|
||||
<router-link :to="{ name: 'editGroup', params: { id: group.id, name: group.name }}" class="has-text-grey px-1" :title="$t('commons.rename')">
|
||||
<router-link :to="{ name: 'editGroup', params: { groupId: group.id, name: group.name }}" class="has-text-grey px-1" :title="$t('commons.rename')">
|
||||
<font-awesome-icon :icon="['fas', 'pen-square']" />
|
||||
</router-link>
|
||||
<span class="is-family-primary is-size-6 is-size-7-mobile has-text-grey">{{ group.twofaccounts_count }} {{ $t('twofaccounts.accounts') }}</span>
|
||||
|
@ -25,13 +25,13 @@
|
||||
}
|
||||
},
|
||||
|
||||
props: ['id', 'name'],
|
||||
props: ['groupId', 'name'],
|
||||
|
||||
methods: {
|
||||
|
||||
async updateGroup() {
|
||||
|
||||
await this.form.put('/api/v1/groups/' + this.id)
|
||||
await this.form.put('/api/v1/groups/' + this.groupId)
|
||||
|
||||
if( this.form.errors.any() === false ) {
|
||||
this.$notify({ type: 'is-success', text: this.$t('groups.group_name_saved') })
|
||||
|
Loading…
x
Reference in New Issue
Block a user