Mercurial > gemma
diff client/src/components/importschedule/Importscheduledetail.vue @ 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 | e84f78cd0d2f |
children | 4a7aa3f57efe |
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: