This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user