Mercurial > gemma
diff client/src/components/identify/Identify.vue @ 3369:33c398df5cb5
client: implement download of the user manual
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Wed, 22 May 2019 11:56:52 +0200 |
parents | 5487abeb380c |
children | 6075c4c25568 |
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue Wed May 22 11:00:25 2019 +0200 +++ b/client/src/components/identify/Identify.vue Wed May 22 11:56:52 2019 +0200 @@ -81,6 +81,14 @@ </span> <translate>Generated PDFs use font: </translate> <a href="http://libertine-fonts.org">LinBiolinum</a> + <div> + <translate>Download</translate> + <a + :href="userManualUrl ? userManualUrl : '#'" + :download="!!userManualUrl.length" + ><translate> User Manual</translate></a + > + </div> </div> </div> </div> @@ -138,7 +146,7 @@ name: "identify", computed: { ...mapGetters("application", ["versionStr"]), - ...mapState("application", ["showIdentify"]), + ...mapState("application", ["showIdentify", "userManualUrl"]), ...mapGetters("map", ["filteredIdentifiedFeatures"]), ...mapState("map", ["currentMeasurement"]), identifiedLabel() {