Mercurial > gemma
changeset 1773:bd72d1a7ffe6
in edit case, the title shows import and its according id
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 11 Jan 2019 11:42:28 +0100 |
parents | 70c4dc694d61 |
children | f9ac2d4d2069 |
files | client/src/components/importschedule/Importscheduledetail.vue |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue Fri Jan 11 11:36:34 2019 +0100 +++ b/client/src/components/importschedule/Importscheduledetail.vue Fri Jan 11 11:42:28 2019 +0100 @@ -7,7 +7,7 @@ <h6 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center" > - <translate>New import</translate> + {{ dialogLabel }} <span @click="closeDetailview" class="closebutton"> <font-awesome-icon icon="times"></font-awesome-icon> </span> @@ -486,6 +486,10 @@ }, computed: { ...mapState("imports", ["importScheduleDetailVisible", "currentSchedule"]), + dialogLabel() { + if (this.id) return this.$gettext("Import") + " " + this.id; + return this.$gettext("New Import"); + }, isURLRequired() { switch (this.import_) { case this.$options.IMPORTTYPES.BOTTLENECK: