fix: non unique ids (#672)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#672
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen 2021-08-23 17:42:42 +00:00 committed by konrad
parent 19f52eb8d1
commit 30d699df2d
2 changed files with 5 additions and 5 deletions

View File

@ -72,7 +72,7 @@ describe('Lists', () => {
cy.get('.namespace-container .menu.namespaces-lists .more-container .menu-list li:first-child .dropdown .dropdown-content') cy.get('.namespace-container .menu.namespaces-lists .more-container .menu-list li:first-child .dropdown .dropdown-content')
.contains('Edit') .contains('Edit')
.click() .click()
cy.get('#listtext') cy.get('#title')
.type(`{selectall}${newListName}`) .type(`{selectall}${newListName}`)
cy.get('footer.modal-card-foot .button') cy.get('footer.modal-card-foot .button')
.contains('Save') .contains('Save')

View File

@ -8,14 +8,14 @@
@tertary="$router.push({ name: 'list.list.settings.delete', params: { id: $route.params.listId } })" @tertary="$router.push({ name: 'list.list.settings.delete', params: { id: $route.params.listId } })"
> >
<div class="field"> <div class="field">
<label class="label" for="listtext">{{ $t('list.title') }}</label> <label class="label" for="title">{{ $t('list.title') }}</label>
<div class="control"> <div class="control">
<input <input
:class="{ 'disabled': listService.loading}" :class="{ 'disabled': listService.loading}"
:disabled="listService.loading" :disabled="listService.loading"
@keyup.enter="save" @keyup.enter="save"
class="input" class="input"
id="listtext" id="title"
:placeholder="$t('list.edit.titlePlaceholder')" :placeholder="$t('list.edit.titlePlaceholder')"
type="text" type="text"
v-focus v-focus
@ -25,7 +25,7 @@
<div class="field"> <div class="field">
<label <label
class="label" class="label"
for="listtext" for="identifier"
v-tooltip="$t('list.edit.identifierTooltip')"> v-tooltip="$t('list.edit.identifierTooltip')">
{{ $t('list.edit.identifier') }} {{ $t('list.edit.identifier') }}
</label> </label>
@ -35,7 +35,7 @@
:disabled="listService.loading" :disabled="listService.loading"
@keyup.enter="save" @keyup.enter="save"
class="input" class="input"
id="listtext" id="identifier"
:placeholder="$t('list.edit.identifierPlaceholder')" :placeholder="$t('list.edit.identifierPlaceholder')"
type="text" type="text"
v-focus v-focus