htl-leo-itp-2325-4-5BHITM / cam-connect

Verleihsystem für das Equipment der HTL-Leonding
The Unlicense
2 stars 0 forks source link

Change AppState to class #82

Closed elYanuki closed 5 months ago

elYanuki commented 6 months ago

the AppState class now offers variables for all states just as they were in the Object before. Using the AppState in components stayed the same: use a ObservedProperty of type AppState and access its value.

Setting items has changed, the AppState offers add and remove functions and global actions such opening the create modal all the updates will automatically be sent out to all subscribers. Getting and Setting values is handled via get and set functions that have special behaviors.

This Overall streamlines communication between components like the rent creation and cancellation and the corresponding hotkeys.

elYanuki commented 5 months ago

@Michiii11 please take a look and close if it seems fine