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) {
const result = await vm.$dialog.showAndWait(reportChooser, {
reports: reports,
title: "MYTITLE"
title: "Choose a report",
oktext: "PrintIt!",
canceltext: "fuckthisshit"
});
return result;
}

View File

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