Skip to content

Commit

Permalink
add reporting perms
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Oct 20, 2023
1 parent e6300c4 commit 8eb216e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/components/accounts/RolesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
</div>
</q-card-section>

<div class="text-subtitle2">Reporting</div>
<q-separator />
<q-card-section class="row">
<div class="q-gutter-sm">
<q-checkbox
v-model="localRole.can_view_reports"
label="Reporting Viewer"
/>
<q-checkbox
v-model="localRole.can_manage_reports"
label="Reporting Manager"
/>
</div>
</q-card-section>

<div class="text-subtitle2">Accounts</div>
<q-separator />
<q-card-section class="row">
Expand Down Expand Up @@ -501,6 +516,9 @@ export default {
can_manage_roles: false,
can_view_clients: [],
can_view_sites: [],
// reporting perms
can_view_reports: false,
can_manage_reports: false,
});
const loading = ref(false);
Expand Down Expand Up @@ -528,7 +546,7 @@ export default {
role.value[key] = newValue;
}
});
}
},
);
return {
Expand Down

0 comments on commit 8eb216e

Please sign in to comment.