This commit is contained in:
2020-06-21 22:14:42 +00:00
parent ed12a4aac1
commit 4ebbff314d
2 changed files with 21 additions and 6 deletions

View File

@@ -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 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 todo: grid enum roles not always working
maybe put a role control in there or replicate that code 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? - 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? - 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 !!! 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 or both
Then remove from seeder entirely Then remove from seeder entirely

View File

@@ -3,7 +3,22 @@
export default { export default {
get(enumKey, enumValue) { get(enumKey, enumValue) {
enumKey = enumKey.toLowerCase(); 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(" ");
}
}, },
////////////////////////////////// //////////////////////////////////
// //