This commit is contained in:
2019-06-12 19:03:58 +00:00
parent 849bdf8b18
commit 11b439700c
2 changed files with 13 additions and 14 deletions

View File

@@ -119,7 +119,9 @@ export default {
async getReportChoice(vm, reports) { async getReportChoice(vm, reports) {
const result = await vm.$dialog.showAndWait(reportChooser, { const result = await vm.$dialog.showAndWait(reportChooser, {
reports: reports, reports: reports,
title: "MYTITLE" title: "Choose a report",
oktext: "PrintIt!",
canceltext: "fuckthisshit"
}); });
return result; return result;
} }

View File

@@ -11,7 +11,7 @@
</template> </template>
<script> <script>
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* eslint-disable */ /* Xeslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
//TODO: add property to accept list of reports available to user //TODO: add property to accept list of reports available to user
@@ -31,35 +31,32 @@ export default {
}, },
props: { props: {
title: String, title: String,
oktext: String,
canceltext: String,
reports: Array reports: Array
}, },
computed: { computed: {
actions() { actions() {
// debugger;
return { return {
ok: { ok: {
flat: true, flat: true,
text: "OCURR" text: this.oktext
// ,
// handle: function(a,b,c,d) {
// debugger;
// this.$emit("submit", this.selected);
// }
}, },
cancel: { cancel: {
flat: true, flat: true,
text: "CRNCL", text: this.canceltext,
handle: () => { handle: () => {
return "NOPE"; return undefined;
} }
} }
}; };
} }
}, },
methods: { methods: {
handleClick (res) { handleClick() {
this.$emit('submit', this.selected) this.$emit("submit", this.selected);
return false return false;
} }
} }
}; };