comparison client/src/components/ImportWaterwayProfiles.vue @ 2210:0cae90830be0 pdf-export

import_waterwayprofile: prefill url
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 06 Feb 2019 15:20:58 +0100
parents 7ef7c3fd7383
children a08e0f532304
comparison
equal deleted inserted replaced
2209:7ef7c3fd7383 2210:0cae90830be0
126 126
127 export default { 127 export default {
128 name: "importwaterwayprofiles", 128 name: "importwaterwayprofiles",
129 data() { 129 data() {
130 return { 130 return {
131 url: "", 131 url: "https://service.d4d-portal.info/wamos/wfs/",
132 sortBy: "hydro_scamin", 132 sortBy: "hydro_scamin",
133 featureType: "ws-wamos:ienc_wtwprf", 133 featureType: "ws-wamos:ienc_wtwprf",
134 disableUploadButton: false, 134 disableUploadButton: false,
135 uploadLabel: this.$gettext("choose file to upload"), 135 uploadLabel: this.$gettext("choose file to upload"),
136 uploadFile: null 136 uploadFile: null
162 title: this.$gettext("Import"), 162 title: this.$gettext("Import"),
163 message: this.$gettext( 163 message: this.$gettext(
164 this.uploadLabel + this.$gettext(" was successfully uploaded.") 164 this.uploadLabel + this.$gettext(" was successfully uploaded.")
165 ) 165 )
166 }); 166 });
167 this.url = ""; 167 this.url = "https://service.d4d-portal.info/wamos/wfs/";
168 this.uploadFile = null; 168 this.uploadFile = null;
169 this.uploadLabel = this.$gettext("choose file to upload"); 169 this.uploadLabel = this.$gettext("choose file to upload");
170 }) 170 })
171 .catch(error => { 171 .catch(error => {
172 const { status, data } = error.response; 172 const { status, data } = error.response;