update on lock status

This commit is contained in:
Poojawa
2018-09-22 04:06:28 -05:00
parent 12a9989a7c
commit c6b53bb31b
2 changed files with 2 additions and 0 deletions
@@ -835,6 +835,7 @@
if(src.allowed(usr) && !wires.is_cut(WIRE_IDSCAN))
locked = !locked
to_chat(user, "<span class='notice'>You [ locked ? "lock" : "unlock"] the air alarm interface.</span>")
updateUsrDialog()
else
to_chat(user, "<span class='danger'>Access denied.</span>")
return
+1
View File
@@ -721,6 +721,7 @@
locked = !locked
to_chat(user, "<span class='notice'>You [ locked ? "lock" : "unlock"] the APC interface.</span>")
update_icon()
updateUsrDialog()
else
to_chat(user, "<span class='warning'>Access denied.</span>")