This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
item-value="id"
|
||||
dense
|
||||
:label="$ay.t('NewStatus')"
|
||||
:prepend-icon="editStateIcon()"
|
||||
prepend-icon="$ayiEdit"
|
||||
@click:prepend="handleEditStateClick()"
|
||||
>
|
||||
<template v-slot:item="data">
|
||||
@@ -233,22 +233,10 @@ export default {
|
||||
}
|
||||
return "$ayiHistory";
|
||||
},
|
||||
editStateIcon: function() {
|
||||
//assuming if have rights to at least view wo have rights to at least view states
|
||||
if (this.value != null) {
|
||||
return "$ayiEdit";
|
||||
}
|
||||
return "$ayiPlus";
|
||||
},
|
||||
handleEditStateClick: function() {
|
||||
let idToOpen = 0;
|
||||
if (this.selectedStatus != null) {
|
||||
console.log("selectedStatus is", this.selectedStatus);
|
||||
idToOpen = this.selectedStatus;
|
||||
}
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: window.$gz.type.WorkOrderStatus,
|
||||
id: idToOpen
|
||||
id: this.selectedStatus
|
||||
});
|
||||
},
|
||||
save() {
|
||||
|
||||
Reference in New Issue
Block a user