diff --git a/ayanova/src/components/work-order-item-scheduled-users.vue b/ayanova/src/components/work-order-item-scheduled-users.vue
index 975f486f..3db1ec69 100644
--- a/ayanova/src/components/work-order-item-scheduled-users.vue
+++ b/ayanova/src/components/work-order-item-scheduled-users.vue
@@ -74,7 +74,7 @@ export default {
},
canAdd: function() {
return (
- !this.value.isLocked &&
+ !this.value.isLockedAtServer &&
this.pvm.rights.change &&
this.pvm.subRights.scheduledUsers.create
);
diff --git a/ayanova/src/components/work-order-state.vue b/ayanova/src/components/work-order-state.vue
index 84896f54..f025804d 100644
--- a/ayanova/src/components/work-order-state.vue
+++ b/ayanova/src/components/work-order-state.vue
@@ -4,12 +4,12 @@
- {{ currentState.name }}
- $ayiFlag
- {{ pvm.currentState.name }}
+ $ayiFlag
+ $ayiLock
- $ayiCheckCircle
@@ -68,7 +68,7 @@
todo: it must be clear to user why they can not change if they have too low a role to change, perhaps text under state instead of selector box that says "Only select roles can change this state"
-->
- {{ currentState }}
+ {{ pvm.currentState }}