fix: non unique ids (#672)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/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')
.contains('Edit')
.click()
cy.get('#listtext')
cy.get('#title')
.type(`{selectall}${newListName}`)
cy.get('footer.modal-card-foot .button')
.contains('Save')

View file

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