diff --git a/src/components/SummaryCard/index.vue b/src/components/SummaryCard/index.vue index 103501d7c..1d8092f3d 100644 --- a/src/components/SummaryCard/index.vue +++ b/src/components/SummaryCard/index.vue @@ -4,15 +4,15 @@ {{ title }} - {{ rightSideLabel.title }} + + {{ rightSideLabel.title }} +

- - {{ body.count }} - + {{ body.count }} {{ body.count }} @@ -77,4 +77,8 @@ export default { .no-margins { margin: 0 !important; } + + .disabled-link { + color: #428bca; + } diff --git a/src/store/modules/users.js b/src/store/modules/users.js index feee1dcdc..0a104a074 100644 --- a/src/store/modules/users.js +++ b/src/store/modules/users.js @@ -20,7 +20,9 @@ const getDefaultState = () => { orgs: [], perms: 0b00000000, MFAVerifyAt: null, - isSuperAdmin: false + isSuperAdmin: false, + hasAdminPerm: false, + hasAuditPerm: false } } @@ -53,12 +55,15 @@ const mutations = { }, SET_ROLES(state, roles) { state.roles = roles + // rolec.PERM_ADMIN & }, SET_SYS_ROLE(state, role) { state.sysRole = role }, SET_PERMS(state, perms) { state.perms = perms + state.hasAdmin = (perms & rolec.PERM_ADMIN) === rolec.PERM_ADMIN + state.hasAudit = (perms & rolec.PERM_AUDIT) === rolec.PERM_AUDIT }, SET_CURRENT_ORG(state, org) { saveCurrentOrgToCookie(org) diff --git a/src/views/dashboard/ResourceSummary.vue b/src/views/dashboard/ResourceSummary.vue index 898e831dc..f9a4004cd 100644 --- a/src/views/dashboard/ResourceSummary.vue +++ b/src/views/dashboard/ResourceSummary.vue @@ -8,8 +8,6 @@