# HG changeset patch # User Sascha L. Teichmann # Date 1551696967 -3600 # Node ID e3487fa9284d7e820fd4ef9be212c8dc2e5a1ffa # Parent 10681749371da18bd6849d73166ef33667db891e# Parent 408e0f4d40084fd4d9a2f1eff94af2091900049e Merged default into octree-diff branch. diff -r 10681749371d -r e3487fa9284d client/src/components/Sidebar.vue --- a/client/src/components/Sidebar.vue Mon Mar 04 11:55:29 2019 +0100 +++ b/client/src/components/Sidebar.vue Mon Mar 04 11:56:07 2019 +0100 @@ -199,10 +199,8 @@ this.contextBoxContent === item && this.routeName == "mainview" ); - } - }, - mounted() { - setTimeout(() => { + }, + updateIndicators() { this.$store.dispatch("imports/getStaging").catch(error => { const { status, data } = error.response; displayError({ @@ -210,7 +208,11 @@ message: `${status}: ${data.message || data}` }); }); - }, 15000); + } + }, + mounted() { + this.updateIndicators(); + setTimeout(this.updateIndicators, 15000); } }; diff -r 10681749371d -r e3487fa9284d client/src/components/identify/formatter.js --- a/client/src/components/identify/formatter.js Mon Mar 04 11:55:29 2019 +0100 +++ b/client/src/components/identify/formatter.js Mon Mar 04 11:56:07 2019 +0100 @@ -37,6 +37,9 @@ }, stretches_geoserver: { label: "Stretch" + }, + gauges_geoserver: { + label: "Gauge" } }; diff -r 10681749371d -r e3487fa9284d client/src/components/systemconfiguration/PDFTemplates.vue --- a/client/src/components/systemconfiguration/PDFTemplates.vue Mon Mar 04 11:55:29 2019 +0100 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Mon Mar 04 11:56:07 2019 +0100 @@ -30,10 +30,7 @@ @@ -42,13 +39,7 @@ - -
-

- {{ templateToUpload.name }} uploaded successfully -

-
@@ -91,16 +77,14 @@ * Markus Kottländer */ import { HTTP } from "@/lib/http"; -import { displayError } from "@/lib/errors.js"; +import { displayError, displayInfo } from "@/lib/errors.js"; export default { name: "pdftemplates", data() { return { templates: [], - uploading: false, - templateToUpload: "", - showSuccessUploadMsg: false + uploading: false }; }, methods: { @@ -135,8 +119,10 @@ ) .then(() => { this.loadTemplates(); - this.templateToUpload = template; - this.showSuccessUploadMsg = true; + displayInfo({ + message: + template.name + " " + this.$gettext("uploaded successfully") + }); }) .catch(e => { const { status, data } = e.response; @@ -204,6 +190,10 @@ ); if (removeIndex !== -1) { this.templates.splice(removeIndex, 1); + displayInfo({ + message: + template.name + " " + this.$gettext("deleted successfully") + }); } }); } diff -r 10681749371d -r e3487fa9284d client/src/store/map.js --- a/client/src/store/map.js Mon Mar 04 11:55:29 2019 +0100 +++ b/client/src/store/map.js Mon Mar 04 11:56:07 2019 +0100 @@ -386,21 +386,21 @@ }), style: function(feature) { return new Style({ - image: new RegularShape({ - radius: 6, - fill: new Fill({ color: "rgba(255, 255, 0, 0.1)" }), - stroke: new Stroke({ color: "red", width: 1 }), - points: 3, - rotation: 0, - angle: 0 + image: new RegularShape({ + radius: 6, + fill: new Fill({ color: "rgba(255, 255, 0, 0.1)" }), + stroke: new Stroke({ color: "red", width: 1 }), + points: 3, + rotation: 0, + angle: 0 + }), + text: new Text({ + font: '10px "Open Sans", "sans-serif"', + offsetY: 10, + fill: new Fill({ + color: "black" }), - text: new Text({ - font: '10px "Open Sans", "sans-serif"', - offsetY: 10, - fill: new Fill({ - color: "black" - }), - text: feature.get("objname") + text: feature.get("objname") }) }); }, @@ -408,7 +408,7 @@ minResolution: 0 }), isVisible: true, - showInLegend: true, + showInLegend: true }, { name: LAYERS.DRAWTOOL,