Fix Edit group link not pointing to the defined route url

This commit is contained in:
Bubka 2023-08-24 18:46:21 +02:00
parent a96a1cef05
commit 22994ed1f2
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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') })