Code clean up, makes use of states PROPERLY (#12831)

* Code clean up, makes use of states PROPERLY

* I forgot how to new

* Fix

* Changelog

* 7th vueui arg is data.

* Adds check if topic is proxied by vueui

* Admin topic state refactor

Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
This commit is contained in:
Karolis
2021-12-19 23:17:03 +02:00
committed by GitHub
parent 1266fae968
commit 2aa1ca17b7
8 changed files with 34 additions and 37 deletions

View File

@@ -16,7 +16,7 @@
var/datum/vueui/ui = SSvueui.get_open_ui(user, src)
if(!ui)
ui = new(user, src, "admin-permissions-panel", 800, 600, "Permissions panel", state = interactive_state)
ui = new(user, src, "admin-permissions-panel", 800, 600, "Permissions panel", state = admin_state)
ui.header = "minimal"
ui.data = vueui_data_change(list(), user, ui)