Mercurial > gemma
changeset 2124:af136b1a854e
linting
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 05 Feb 2019 14:46:26 +0100 |
parents | cbdf5cb12e4b |
children | ea5a0e771b71 59c21dee6315 |
files | client/src/components/Pdftool.vue client/src/components/usermanagement/Usermanagement.vue |
diffstat | 2 files changed, 21 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Tue Feb 05 14:02:59 2019 +0100 +++ b/client/src/components/Pdftool.vue Tue Feb 05 14:46:26 2019 +0100 @@ -22,9 +22,13 @@ class="form-control d-block mb-2 w-100 font-weight-bold" > <option :value="null"><translate>Chose preset</translate></option> - <option v-for="template in templates" :value="template.name" - ><translate>{{ template.name }}</translate></option + <option + v-for="template in templates" + :value="template.name" + :key="template.name" > + <translate>{{ template.name }}</translate> + </option> </select> <hr class="mb-1" /> <small class="text-muted"><translate>Format</translate></small>
--- a/client/src/components/usermanagement/Usermanagement.vue Tue Feb 05 14:02:59 2019 +0100 +++ b/client/src/components/usermanagement/Usermanagement.vue Tue Feb 05 14:46:26 2019 +0100 @@ -71,7 +71,10 @@ <td> <font-awesome-icon icon="trash" - @click="showDeleteUserPrompt = true; userToDelete = user.user" + @click=" + showDeleteUserPrompt = true; + userToDelete = user.user; + " ></font-awesome-icon> </td> </tr> @@ -108,7 +111,7 @@ ></Userdetail> </div> </div> - + <div :class="[ 'box popup ui-element rounded bg-white', @@ -122,22 +125,25 @@ <font-awesome-icon icon="times" class="ml-auto text-muted" - @click="showDeleteUserPrompt = false;" + @click="showDeleteUserPrompt = false" ></font-awesome-icon> </h6> <div class="p-3 text-left"> - <translate class="text-center d-block">Do you really want to delete the following user account:</translate> + <translate class="text-center d-block" + >Do you really want to delete the following user account:</translate + > <h5 class="mt-3 text-center">{{ userToDelete }}</h5> </div> - <div class="py-2 px-3 border-top d-flex align-items-center justify-content-between"> + <div + class="py-2 px-3 border-top d-flex align-items-center justify-content-between" + > <button class="btn btn-sm btn-warning" - @click="showDeleteUserPrompt = false;"> + @click="showDeleteUserPrompt = false" + > no </button> - <button - class="btn btn-sm btn-info" - @click="deleteUser(userToDelete)"> + <button class="btn btn-sm btn-info" @click="deleteUser(userToDelete)"> yes </button> </div>