Skip to content

Commit

Permalink
feat(coral): Adapt superadmin preview banner and add tenants link (#2585
Browse files Browse the repository at this point in the history
)

* Add superadmin link to Tenants page

Signed-off-by: Mirjam Aulbach <[email protected]>

* Update preview banner in Klaw

Signed-off-by: Mirjam Aulbach <[email protected]>

---------

Signed-off-by: Mirjam Aulbach <[email protected]>
  • Loading branch information
programmiri authored Aug 30, 2024
1 parent e588916 commit 876de75
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions coral/src/app/layout/main-navigation/MainNavigation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ describe("MainNavigation.tsx", () => {
name: "Teams",
linkTo: `/configuration/teams`,
},
{
name: "Tenants",
linkTo: "/tenants",
},
{
name: "Environments",
linkTo: "/configuration/environments",
Expand Down
3 changes: 3 additions & 0 deletions coral/src/app/layout/main-navigation/MainNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ function MainNavigation() {
linkText={"Teams"}
active={pathname.startsWith(Routes.TEAMS)}
/>
{showNavigationForSuperAdmin && (
<MainNavigationLink linkText={"Tenants"} to={"/tenants"} />
)}
{showNavigationForSuperAdmin && (
<MainNavigationLink
linkText={"Approve user request"}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/browseAcls.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ <h4 class="mb-3">Shortcuts</h4>
<div class="container-fluid">
<div class="row page-titles">
</div>
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true'">
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true' && userrole != 'SUPERADMIN'">
<div class="ribbon-wrapper card col-lg-6 col-md-6 col-xlg-2 col-xs-6">
<div class="ribbon ribbon-success">New user interface available</div>
<p class="ribbon-content">
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/clusters.html
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ <h4 class="mb-3">Shortcuts</h4>

<!-- Row -->

<div class="row" ng-if="dashboardDetails.coralEnabled === 'true' && userrole != 'SUPERADMIN'">
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true'">
<div class="ribbon-wrapper card col-lg-6 col-md-6 col-xlg-2 col-xs-6">
<div class="ribbon ribbon-success">New user interface available</div>
<p class="ribbon-content">
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/connectorOverview.html
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ <h4 class="mb-3">Shortcuts</h4>
<div class="container-fluid">
<div class="row page-titles">
</div>
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true'">
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true' && userrole != 'SUPERADMIN'">
<div class="ribbon-wrapper card col-lg-6 col-md-6 col-xlg-2 col-xs-6">
<div class="ribbon ribbon-success">New user interface available</div>
<p class="ribbon-content">
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/envs.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ <h4 class="mb-3">Shortcuts</h4>
<div class="row page-titles">
</div>

<div class="row" ng-if="dashboardDetails.coralEnabled === 'true' && userrole != 'SUPERADMIN'">
<div class="row" ng-if="dashboardDetails.coralEnabled === 'true'">
<div class="ribbon-wrapper card col-lg-6 col-md-6 col-xlg-2 col-xs-6">
<div class="ribbon ribbon-success">New user interface available</div>
<p class="ribbon-content">
Expand Down

0 comments on commit 876de75

Please sign in to comment.