Skip to content

Commit

Permalink
chore: conditionally show operations tile for external user
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Sep 17, 2024
1 parent 6530148 commit 9432665
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
"title": "Operations",
"icon": "Layers",
"content": "View the operations owned by your operator, or to add and register new operation to your operator here.",
"href": "/administration/operations"
"href": "/administration/operations",
"condition": {
"api": "registration/v2/user-operators/current/operator",
"field": "error",
"operator": "notExists",
"value": true
}
},
{
"title": "Contacts",
Expand Down
8 changes: 7 additions & 1 deletion bc_obps/common/fixtures/dashboard/bciers/external.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
},
{
"title": "Operations",
"href": "/administration/operations"
"href": "/administration/operations",
"condition": {
"api": "registration/v2/user-operators/current/operator",
"field": "error",
"operator": "notExists",
"value": true
}
},
{
"title": "Contacts",
Expand Down

0 comments on commit 9432665

Please sign in to comment.