bug: corrected configs for roles

deve
Tom Peltonen 2025-12-17 22:56:02 +11:00
parent 1cf8d7a638
commit 5617a58158
11 changed files with 79 additions and 25 deletions

View File

@ -9,4 +9,5 @@ menu-005-002
menu-005-003 menu-005-003
menu-099-001 menu-099-001
menu-099-002 menu-099-002
apps2 apps2
menu_no_roles

View File

@ -9,4 +9,5 @@ menu-005-002
menu-005-003 menu-005-003
menu-099-001 menu-099-001
menu-099-002 menu-099-002
apps2 apps2
menu_no_roles

View File

@ -9,4 +9,5 @@ menu-005-002
menu-005-003 menu-005-003
menu-099-001 menu-099-001
menu-099-002 menu-099-002
apps2 apps2
menu_no_roles

View File

@ -24,4 +24,5 @@ apps2
apps2-002 apps2-002
apps2-002-001 apps2-002-001
apps2-002-002 apps2-002-002
apps2-002-003 apps2-002-003
menu_no_roles

View File

@ -1,3 +1,4 @@
home1 home1
menu-001-001 menu-001-001
menu-001-002 menu-001-002
menu_no_roles

View File

@ -1,3 +1,4 @@
home1 home1
menu-001-001 menu-001-001
menu-001-002 menu-001-002
menu_no_roles

View File

@ -24,4 +24,5 @@ apps2
apps2-002 apps2-002
apps2-002-001 apps2-002-001
apps2-002-002 apps2-002-002
apps2-002-003 apps2-002-003
menu_no_roles

View File

@ -37,4 +37,5 @@ apps3-002-003
apps3-003 apps3-003
apps3-003-001 apps3-003-001
apps3-003-002 apps3-003-002
apps3-003-003 apps3-003-003
menu_no_roles

View File

@ -24,4 +24,5 @@ apps2
apps2-002 apps2-002
apps2-002-001 apps2-002-001
apps2-002-002 apps2-002-002
apps2-002-003 apps2-002-003
menu_no_roles

View File

@ -48,6 +48,7 @@
{ {
"id": "menu-002-001", "id": "menu-002-001",
"intent": "/content/viewaccounts.html", "intent": "/content/viewaccounts.html",
"functionId": "/content/viewaccounts.html",
"label": "View", "label": "View",
"target": "Accounts", "target": "Accounts",
"icon": "fa-eye", "icon": "fa-eye",
@ -56,6 +57,7 @@
{ {
"id": "menu-002-002", "id": "menu-002-002",
"intent": "/content/transfer.html", "intent": "/content/transfer.html",
"functionId": "/content/transfer.html",
"label": "Transfer", "label": "Transfer",
"target": "Payment", "target": "Payment",
"icon": "fa-exchange-alt", "icon": "fa-exchange-alt",
@ -64,6 +66,7 @@
{ {
"id": "menu-002-003", "id": "menu-002-003",
"intent": "/content/payment.html", "intent": "/content/payment.html",
"functionId": "/content/payment.html",
"label": "Payment", "label": "Payment",
"target": "Payment", "target": "Payment",
"icon": "fa-money-check-dollar", "icon": "fa-money-check-dollar",
@ -81,6 +84,7 @@
{ {
"id": "menu-003-001", "id": "menu-003-001",
"intent": "https://news.com.au", "intent": "https://news.com.au",
"functionId": "menu-external-news",
"label": "News (AU)", "label": "News (AU)",
"target": "news", "target": "news",
"icon": "fa-envelope", "icon": "fa-envelope",
@ -89,6 +93,7 @@
{ {
"id": "menu-003-002", "id": "menu-003-002",
"intent": "https://bbc.co.uk/news", "intent": "https://bbc.co.uk/news",
"functionId": "menu-external-news",
"label": "BBC", "label": "BBC",
"target": "news", "target": "news",
"icon": "fa-radio", "icon": "fa-radio",
@ -97,6 +102,7 @@
{ {
"id": "menu-003-003", "id": "menu-003-003",
"intent": "https://smh.com.au", "intent": "https://smh.com.au",
"functionId": "menu-external-news",
"label": "SMH", "label": "SMH",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -105,6 +111,7 @@
{ {
"id": "menu-003-004", "id": "menu-003-004",
"intent": "https://abc.net.au/news", "intent": "https://abc.net.au/news",
"functionId": "menu-external-news",
"label": "ABC news", "label": "ABC news",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -113,6 +120,7 @@
{ {
"id": "menu-003-005", "id": "menu-003-005",
"intent": "https://cnn.com", "intent": "https://cnn.com",
"functionId": "menu-external-news",
"label": "CNN", "label": "CNN",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -120,9 +128,8 @@
} }
], ],
"id": "menu-003", "id": "menu-003",
"intent": "/accounts", "intent": "",
"label": "News", "label": "News",
"target": "_blank",
"icon": "fa-newspaper", "icon": "fa-newspaper",
"tenant": "" "tenant": ""
}, },
@ -411,6 +418,16 @@
"tenant": "" "tenant": ""
} }
] ]
},
{
"id": "menu_no_roles",
"intent": "/content/noroles.html",
"intentStatus": "hidden",
"functionId": "menu_no_roles",
"label": "Error",
"target": "error",
"icon": "fa-eye",
"tenant": ""
} }
] ]
} }

View File

@ -2,14 +2,28 @@
"id": "menu-selfserve", "id": "menu-selfserve",
"intent": "", "intent": "",
"label": "L0 Menu", "label": "L0 Menu",
"application": "selfserve",
"applicationLabel": "L0 Self Serve",
"children": [ "children": [
{ {
"id": "home1", "id": "home1",
"label": "Welcome Home", "label": "Welcome {{.digital_id}}",
"target": "_blank", "target": "_blank",
"icon": "fa-home", "icon": "fa-home",
"application": "home1",
"applicationLabel": "Home",
"tenant": "", "tenant": "",
"children": [ "children": [
{
"id": "menu-001-001",
"label": "Dashboard {{.organisation}}",
"functionId": "menu-001-001",
"intent": "/content/dashboard.html",
"target": "Home",
"icon": "fa-tachometer-alt",
"iconActive": "fa-chart-line",
"tenant": ""
},
{ {
"id": "menu-001-002", "id": "menu-001-002",
"label": "Alternate Dashboard", "label": "Alternate Dashboard",
@ -18,16 +32,6 @@
"target": "Home", "target": "Home",
"icon": "fa-chart-line", "icon": "fa-chart-line",
"tenant": "" "tenant": ""
},
{
"id": "menu-001-001",
"label": "DML Dashboard",
"functionId": "menu-001-001",
"intent": "/content/dashboard.html",
"target": "Home",
"icon": "fa-tachometer-alt",
"iconActive": "fa-chart-line",
"tenant": ""
} }
] ]
}, },
@ -35,6 +39,8 @@
"id": "apps1", "id": "apps1",
"intent": "", "intent": "",
"label": "Apps 1", "label": "Apps 1",
"application": "apps1",
"applicationLabel": "Apps 1",
"functionId": "apps1", "functionId": "apps1",
"children": [ "children": [
{ {
@ -42,6 +48,7 @@
{ {
"id": "menu-002-001", "id": "menu-002-001",
"intent": "/content/viewaccounts.html", "intent": "/content/viewaccounts.html",
"functionId": "/content/viewaccounts.html",
"label": "View", "label": "View",
"target": "Accounts", "target": "Accounts",
"icon": "fa-eye", "icon": "fa-eye",
@ -50,6 +57,7 @@
{ {
"id": "menu-002-002", "id": "menu-002-002",
"intent": "/content/transfer.html", "intent": "/content/transfer.html",
"functionId": "/content/transfer.html",
"label": "Transfer", "label": "Transfer",
"target": "Payment", "target": "Payment",
"icon": "fa-exchange-alt", "icon": "fa-exchange-alt",
@ -58,6 +66,7 @@
{ {
"id": "menu-002-003", "id": "menu-002-003",
"intent": "/content/payment.html", "intent": "/content/payment.html",
"functionId": "/content/payment.html",
"label": "Payment", "label": "Payment",
"target": "Payment", "target": "Payment",
"icon": "fa-money-check-dollar", "icon": "fa-money-check-dollar",
@ -75,6 +84,7 @@
{ {
"id": "menu-003-001", "id": "menu-003-001",
"intent": "https://news.com.au", "intent": "https://news.com.au",
"functionId": "menu-external-news",
"label": "News (AU)", "label": "News (AU)",
"target": "news", "target": "news",
"icon": "fa-envelope", "icon": "fa-envelope",
@ -83,6 +93,7 @@
{ {
"id": "menu-003-002", "id": "menu-003-002",
"intent": "https://bbc.co.uk/news", "intent": "https://bbc.co.uk/news",
"functionId": "menu-external-news",
"label": "BBC", "label": "BBC",
"target": "news", "target": "news",
"icon": "fa-radio", "icon": "fa-radio",
@ -91,6 +102,7 @@
{ {
"id": "menu-003-003", "id": "menu-003-003",
"intent": "https://smh.com.au", "intent": "https://smh.com.au",
"functionId": "menu-external-news",
"label": "SMH", "label": "SMH",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -99,6 +111,7 @@
{ {
"id": "menu-003-004", "id": "menu-003-004",
"intent": "https://abc.net.au/news", "intent": "https://abc.net.au/news",
"functionId": "menu-external-news",
"label": "ABC news", "label": "ABC news",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -107,6 +120,7 @@
{ {
"id": "menu-003-005", "id": "menu-003-005",
"intent": "https://cnn.com", "intent": "https://cnn.com",
"functionId": "menu-external-news",
"label": "CNN", "label": "CNN",
"target": "news", "target": "news",
"icon": "fa-envelope-open", "icon": "fa-envelope-open",
@ -114,9 +128,8 @@
} }
], ],
"id": "menu-003", "id": "menu-003",
"intent": "/accounts", "intent": "",
"label": "News", "label": "News",
"target": "_blank",
"icon": "fa-newspaper", "icon": "fa-newspaper",
"tenant": "" "tenant": ""
}, },
@ -224,7 +237,8 @@
"id": "menu-099-002", "id": "menu-099-002",
"intent": "/content/contact.html", "intent": "/content/contact.html",
"label": "Contact", "label": "Contact",
"target": "Support", "target": "support",
"targetLabel": "Support",
"icon": "fa-phone", "icon": "fa-phone",
"functionId": "menu-099-002", "functionId": "menu-099-002",
"tenant": "" "tenant": ""
@ -242,6 +256,8 @@
"id": "apps2", "id": "apps2",
"intent": "", "intent": "",
"label": "Apps 2", "label": "Apps 2",
"application": "apps2",
"applicationLabel": "Apps 2",
"functionId": "", "functionId": "",
"children": [ "children": [
{ {
@ -286,6 +302,8 @@
"id": "apps3", "id": "apps3",
"intent": "", "intent": "",
"label": "Self serve", "label": "Self serve",
"application": "apps3",
"applicationLabel": "Self serve",
"functionId": "", "functionId": "",
"children": [ "children": [
{ {
@ -400,6 +418,16 @@
"tenant": "" "tenant": ""
} }
] ]
},
{
"id": "menu_no_roles",
"intent": "/content/noroles.html",
"intentStatus": "hidden",
"functionId": "menu_no_roles",
"label": "Error",
"target": "error",
"icon": "fa-eye",
"tenant": ""
} }
] ]
} }