comparison 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
comparison
equal deleted inserted replaced
3368:70605404f37d 3369:33c398df5cb5
79 > 79 >
80 under %{ geoLicense }. 80 under %{ geoLicense }.
81 </span> 81 </span>
82 <translate>Generated PDFs use font: </translate> 82 <translate>Generated PDFs use font: </translate>
83 <a href="http://libertine-fonts.org">LinBiolinum</a> 83 <a href="http://libertine-fonts.org">LinBiolinum</a>
84 <div>
85 <translate>Download</translate>
86 <a
87 :href="userManualUrl ? userManualUrl : '#'"
88 :download="!!userManualUrl.length"
89 ><translate> User Manual</translate></a
90 >
91 </div>
84 </div> 92 </div>
85 </div> 93 </div>
86 </div> 94 </div>
87 </template> 95 </template>
88 96
136 144
137 export default { 145 export default {
138 name: "identify", 146 name: "identify",
139 computed: { 147 computed: {
140 ...mapGetters("application", ["versionStr"]), 148 ...mapGetters("application", ["versionStr"]),
141 ...mapState("application", ["showIdentify"]), 149 ...mapState("application", ["showIdentify", "userManualUrl"]),
142 ...mapGetters("map", ["filteredIdentifiedFeatures"]), 150 ...mapGetters("map", ["filteredIdentifiedFeatures"]),
143 ...mapState("map", ["currentMeasurement"]), 151 ...mapState("map", ["currentMeasurement"]),
144 identifiedLabel() { 152 identifiedLabel() {
145 return this.$gettext("Identified Features"); 153 return this.$gettext("Identified Features");
146 } 154 }