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