Mercurial > gemma
changeset 1823:7d37d9f5f272
define stretches: better targetting behaviour
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 16 Jan 2019 12:12:44 +0100 |
parents | f1351a58da35 |
children | 4d23461bea4d |
files | client/src/components/ImportStretches.vue client/src/locale/bg_BG/LC_MESSAGES/app.po client/src/locale/de_AT/LC_MESSAGES/app.po client/src/locale/en_GB/LC_MESSAGES/app.po client/src/locale/hr_HR/LC_MESSAGES/app.po client/src/locale/hu_HU/LC_MESSAGES/app.po client/src/locale/ro_RO/LC_MESSAGES/app.po client/src/locale/sk_SK/LC_MESSAGES/app.po |
diffstat | 8 files changed, 34 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/components/ImportStretches.vue Wed Jan 16 12:12:44 2019 +0100 @@ -49,7 +49,7 @@ /> <span class="input-group-text"> <font-awesome-icon - @click="pipetteStart = !pipetteStart" + @click="togglePipette('start')" :class="{ 'text-info': pipetteStart }" icon="bullseye" ></font-awesome-icon> @@ -74,7 +74,7 @@ /> <span class="input-group-text"> <font-awesome-icon - @click="pipetteEnd = !pipetteEnd" + @click="togglePipette('end')" :class="{ 'text-info': pipetteEnd }" icon="bullseye" ></font-awesome-icon> @@ -212,6 +212,15 @@ }; }, methods: { + togglePipette(t) { + if (t === "start") { + this.pipetteStart = !this.pipetteStart; + this.pipetteEnd = false; + } else { + this.pipetteEnd = !this.pipetteEnd; + this.pipetteStart = false; + } + }, validate() { const fields = [ "id", @@ -251,6 +260,8 @@ .replace(/,|\(|\)/g, ""); this.startrhm = this.pipetteStart ? value : this.startrhm; this.endrhm = this.pipetteEnd ? value : this.endrhm; + this.pipetteStart = false; + this.pipetteEnd = false; } } },
--- a/client/src/locale/bg_BG/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/bg_BG/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: gemmajs 1.99.0-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-12-05 12:23+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""
--- a/client/src/locale/de_AT/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/de_AT/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: wamosjs 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-12-11 17:08+0000\n" "Last-Translator: Sascha L. Teichmann <sascha.teichmann@intevation.de>\n" "Language-Team: Austrian German <https://hosted.weblate.org/projects/gemma/client/de_AT/>\n" @@ -489,7 +489,7 @@ msgid "No scheduled imports" msgstr "Keine Pläne" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -710,7 +710,7 @@ msgid "Section" msgstr "Projektion" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 #, fuzzy msgid "Sections" msgstr "Projektion"
--- a/client/src/locale/en_GB/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/en_GB/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: wamosjs 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-07-03 17:18+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""
--- a/client/src/locale/hr_HR/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/hr_HR/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: gemmajs 1.99.0-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-12-05 12:23+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""
--- a/client/src/locale/hu_HU/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/hu_HU/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: gemmajs 1.99.0-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-12-05 12:23+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""
--- a/client/src/locale/ro_RO/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/ro_RO/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: gemmajs 1.99.0-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-12-05 12:23+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""
--- a/client/src/locale/sk_SK/LC_MESSAGES/app.po Wed Jan 16 11:31:36 2019 +0100 +++ b/client/src/locale/sk_SK/LC_MESSAGES/app.po Wed Jan 16 12:12:44 2019 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: wamosjs 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-16 10:17+0100\n" +"POT-Creation-Date: 2019-01-16 12:11+0100\n" "PO-Revision-Date: 2018-07-03 17:18+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -481,7 +481,7 @@ msgid "No scheduled imports" msgstr "" -#: src/components/ImportStretches.vue:238 +#: src/components/ImportStretches.vue:247 msgid "Not implemented!" msgstr "" @@ -688,7 +688,7 @@ msgid "Section" msgstr "" -#: src/components/ImportStretches.vue:237 +#: src/components/ImportStretches.vue:246 msgid "Sections" msgstr ""