This commit is contained in:
2021-04-05 17:32:34 +00:00
parent 833c420ed6
commit 9c07cf8646

View File

@@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<h5>WORKORDER STATE</h5> <h5>WORKORDER STATE</h5>
{{ value }} {{ lastState }}
<!-- Display as drop down box so it appears like any other select, however, it also has a button to show history and <!-- Display as drop down box so it appears like any other select, however, it also has a button to show history and
when user clicks on it a popup dialog shows the entire history of the state in a datatable or something along those lines --> when user clicks on it a popup dialog shows the entire history of the state in a datatable or something along those lines -->
@@ -46,7 +46,11 @@ export default {
}, },
computed: { computed: {
lastState() { lastState() {
return "blah"; if (!this.value.states) {
return "UNKNOWN";
} else {
return this.value.states[this.value.states.length-1];
}
} }
} }
}; };