diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d7595f66..8ebe729b 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -6,11 +6,6 @@ WIFI change 5g channel to 56 (or rescan, but right now 56 is aok) recheck before doing as it seems to vary, maybe someone else's is auto switching - - -todo: user options form put color picker last it's pushing down the entire last row - also, can it be shorter, there's probably a setting for that - todo: grid enum roles not always working maybe put a role control in there or replicate that code @@ -85,6 +80,11 @@ todo: notification - Need way to acknowledge receipt of long poll info from client to server so that it can be removed or something? - maybe successfull sending clears it regardless of client? + +todo: dark mode + move out of user settings into bottom of nav panel maybe like the vuetify website shows + dark mode primary too bright? + todo: put sample wiki in docs or maybe in UI as a thing you can click on to insert it into current wiki if empty !!! or both Then remove from seeder entirely diff --git a/ayanova/src/api/enums.js b/ayanova/src/api/enums.js index 4ed7da40..6dedb284 100644 --- a/ayanova/src/api/enums.js +++ b/ayanova/src/api/enums.js @@ -3,7 +3,22 @@ export default { get(enumKey, enumValue) { enumKey = enumKey.toLowerCase(); - return window.$gz.store.state.enums[enumKey][enumValue]; + if (enumKey != "authorizationroles") { + return window.$gz.store.state.enums[enumKey][enumValue]; + } else { + let ret = []; + if (enumValue == null || enumValue == 0) { + return ""; + } + let availableRoles = this.getSelectionList("AuthorizationRoles"); + for (let i = 0; i < availableRoles.length; i++) { + let role = availableRoles[i]; + if (!!(enumValue & role.id)) { + ret.push(role.name); + } + } + return ret.join(" "); + } }, ////////////////////////////////// //