diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
index 19d2bfcf5c3..f9443116617 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
+++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
@@ -29,19 +29,21 @@
size="md"
(click)="updateSiteName()"
[title]="editing ? 'Save' : 'Edit'"
+ data-testid="site-name-edit-btn"
>
-
-
+ @if (!editing) {
+
+ } @else {
+
+ }
}
{
});
describe('site name edit button visibility', () => {
- const editButton = () => fixture.debugElement.query(By.css('cds-icon-button'));
+ const editButton = () =>
+ fixture.debugElement.query(By.css('[data-testid="site-name-edit-btn"]'));
it('should show the edit button when user has update permission', () => {
component.permission = new Permission(['read', 'update']);
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.html
index 804c4dbc566..98747b9debf 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.html
+++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.html
@@ -3,16 +3,18 @@
[flip]="true"
description=""
>
-
+ @if (userPermission.create || userPermission.update || userPermission.delete) {
+
+ }
@if (configOptPermission.read) {