basic routing and info display
This commit is contained in:
parent
c1e9784b4a
commit
e70e6644a6
12 changed files with 211 additions and 125 deletions
|
@ -68,7 +68,7 @@ export async function isAuthenticatedPromise(): Promise<Payload> {
|
|||
|
||||
var { firstname, lastname, mail, username, permissions } = decoded;
|
||||
|
||||
if (Object.keys(permissions).length === 0) {
|
||||
if (Object.keys(permissions ?? {}).length === 0) {
|
||||
auth.setFailed();
|
||||
reject("nopermissions");
|
||||
}
|
||||
|
|
|
@ -174,11 +174,27 @@ const router = createRouter({
|
|||
props: true,
|
||||
},
|
||||
{
|
||||
path: "edit",
|
||||
name: "admin-club-protocol-edit",
|
||||
component: () => import("@/views/admin/protocol/ProtocolEdit.vue"),
|
||||
meta: { type: "update", section: "club", module: "member" },
|
||||
beforeEnter: [abilityAndNavUpdate],
|
||||
path: "precense",
|
||||
name: "admin-club-protocol-precense",
|
||||
component: () => import("@/views/admin/protocol/ProtocolPrecense.vue"),
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "voting",
|
||||
name: "admin-club-protocol-voting",
|
||||
component: () => import("@/views/admin/protocol/ProtocolVoting.vue"),
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "decisions",
|
||||
name: "admin-club-protocol-decisions",
|
||||
component: () => import("@/views/admin/protocol/ProtocolDecisions.vue"),
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: "protocol",
|
||||
name: "admin-club-protocol-protocol",
|
||||
component: () => import("@/views/admin/protocol/ProtocolProtocol.vue"),
|
||||
props: true,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue