]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix rgw roles breadcrumbs
authorNizamudeen A <nia@redhat.com>
Thu, 18 May 2023 10:48:08 +0000 (16:18 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 26 May 2023 06:30:59 +0000 (12:00 +0530)
Fixes: https://tracker.ceph.com/issues/61241
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 9518cd9d70020bcf5197dea6d61ea0bd2b21ae54)

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-tabs/rgw-user-tabs.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw.module.ts

index 2130d3c2d2d8026e444b7f3dfb1eb32d6aacda21..8ad1ac19309e7cb0f233758f08032de29a1328d9 100644 (file)
@@ -9,7 +9,7 @@
   </li>
   <li class="nav-item">
     <a class="nav-link"
-       routerLink="/rgw/user/roles"
+       routerLink="/rgw/roles"
        routerLinkActive="active"
        ariaCurrentWhenActive="page"
        [routerLinkActiveOptions]="{exact: true}"
index 1bf131363ef64680ee672eef33acf3c7d23315b4..3a8ad6f6fc7435192924c39416d25d7b3fc9721f 100644 (file)
@@ -86,36 +86,36 @@ const routes: Routes = [
         path: `${URLVerbs.EDIT}/:uid`,
         component: RgwUserFormComponent,
         data: { breadcrumbs: ActionLabels.EDIT }
+      }
+    ]
+  },
+  {
+    path: 'roles',
+    data: {
+      breadcrumbs: 'Roles',
+      resource: 'api.rgw.user.roles@1.0',
+      tabs: [
+        {
+          name: 'Users',
+          url: '/rgw/user'
+        },
+        {
+          name: 'Roles',
+          url: '/rgw/roles'
+        }
+      ]
+    },
+    children: [
+      {
+        path: '',
+        component: CRUDTableComponent
       },
       {
-        path: 'roles',
+        path: URLVerbs.CREATE,
+        component: CrudFormComponent,
         data: {
-          breadcrumbs: 'Roles',
-          resource: 'api.rgw.user.roles@1.0',
-          tabs: [
-            {
-              name: 'Users',
-              url: '/rgw/user'
-            },
-            {
-              name: 'Roles',
-              url: '/rgw/user/roles'
-            }
-          ]
-        },
-        children: [
-          {
-            path: '',
-            component: CRUDTableComponent
-          },
-          {
-            path: URLVerbs.CREATE,
-            component: CrudFormComponent,
-            data: {
-              breadcrumbs: ActionLabels.CREATE
-            }
-          }
-        ]
+          breadcrumbs: ActionLabels.CREATE
+        }
       }
     ]
   },