# HG changeset patch # User Thomas Junk # Date 1567600791 -7200 # Node ID 36d3843264074e039c55109fe8d1e0b77af86328 # Parent ab7d80baebe671406fb3e8efbf575abfffa513a2 BottleneckDialogue: Prototype for delete of surveys implemented diff -r ab7d80baebe6 -r 36d384326407 client/src/components/fairway/BottleneckDialogue.vue --- a/client/src/components/fairway/BottleneckDialogue.vue Wed Sep 04 14:16:57 2019 +0200 +++ b/client/src/components/fairway/BottleneckDialogue.vue Wed Sep 04 14:39:51 2019 +0200 @@ -306,6 +306,7 @@ import { displayError, displayInfo } from "@/lib/errors"; import { HTTP } from "@/lib/http"; import { COMPARESURVEYS } from "@/components/paneSetups"; +import lib from "@/lib/filters"; export default { name: "profiles", @@ -633,19 +634,22 @@ }); }, deleteSelectedSurvey() { + const surveyText = `${this.selectedBottleneck}: ${lib.surveyDate( + this.selectedSurvey.date_info + )}`; this.$store.commit("application/popup", { icon: "trash", title: this.$gettext("Delete survey"), content: + `` + this.$gettext("Do you really want to delete the survey:") + - `
- ${this.selectedBottleneck}: ${this.selectedSurvey.date_info}`, + `

+ ${surveyText}
`, confirm: { label: this.$gettext("Delete"), icon: "trash", callback: () => { - console.log("delete selected"); - displayInfo({ title: this.$gettext("Profile deleted!") }); + displayInfo({ title: this.$gettext("Not implemented") }); } }, cancel: { @@ -659,9 +663,10 @@ icon: "trash", title: this.$gettext("Delete cross profile"), content: + `` + this.$gettext("Do you really want to delete the cross profile:") + - `
- ${cut.label}`, + `

+ ${cut.label}
`, confirm: { label: this.$gettext("Delete"), icon: "trash",