]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Replace current delete icons with "fa-times"
authorTiago Melo <tspmelo@gmail.com>
Tue, 31 Jul 2018 15:58:11 +0000 (16:58 +0100)
committerTiago Melo <tspmelo@gmail.com>
Tue, 25 Sep 2018 13:02:58 +0000 (14:02 +0100)
This will allow us to better differentiate a actual delete from a move to trash.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-actions.model.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-actions/table-actions.component.spec.ts

index 62a552f2d575a22752687651889b5c88ce3eb523..4630cf0974f4200b74bb82bbb0371d6b6afa63bf 100644 (file)
@@ -95,7 +95,7 @@ export class RbdListComponent implements OnInit {
     };
     const deleteAction: CdTableAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       click: () => this.deleteRbdModal(),
       name: 'Delete'
     };
index 42ce1a28c95df3ccd53a497267aeeb7fdf418fe1..7b6907e24be2efd1645089293ebbadca333695b9 100644 (file)
@@ -50,7 +50,7 @@ export class RbdSnapshotActionsModel {
   };
   deleteSnap: CdTableAction = {
     permission: 'delete',
-    icon: 'fa-trash-o',
+    icon: 'fa-times',
     disable: (selection: CdTableSelection) =>
       selection.hasSingleSelection && !selection.first().is_protected,
     name: 'Delete'
index f43e05293ba11a1a69c37e32a9e89378321880cd..b7ced8049b2c99916f0e6fa3b54e71b6590dde4f 100644 (file)
@@ -62,7 +62,7 @@ export class RgwBucketListComponent {
     };
     const deleteAction: CdTableAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       click: () => this.deleteAction(),
       name: 'Delete'
     };
index 45b4f0ae61f7f28f054bb50b8f8be6e8baa85cb6..b4b5e60af608a6134e7661caab7ea238dd3aac99 100644 (file)
                           i18n-tooltip
                           tooltip="Delete"
                           (click)="deleteSubuser(i)">
-                    <i class="fa fa-trash-o"></i>
+                    <i class="fa fa-times"></i>
                   </button>
                 </span>
               </div>
                           i18n-tooltip
                           tooltip="Delete"
                           (click)="deleteS3Key(i)">
-                    <i class="fa fa-trash-o"></i>
+                    <i class="fa fa-times"></i>
                   </button>
                 </span>
               </div>
                           i18n-tooltip
                           tooltip="Delete"
                           (click)="deleteCapability(i)">
-                    <i class="fa fa-trash-o"></i>
+                    <i class="fa fa-times"></i>
                   </button>
                 </span>
               </div>
index cc9edcc2693b427aab5cde3ddf92bf1dee4095f0..485ccf214ffeb686c3107a81205b991c98ac13cd 100644 (file)
@@ -78,7 +78,7 @@ export class RgwUserListComponent {
     };
     const deleteAction: CdTableAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       click: () => this.deleteAction(),
       name: 'Delete'
     };
index dcb43df514a4fe65d77bce8dc194483627d30259..e0857fe5777de524d5c18055f499fae7a1359730 100644 (file)
@@ -56,7 +56,7 @@ export class RoleListComponent implements OnInit {
     };
     const deleteAction: CdTableAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       disable: () => !this.selection.hasSingleSelection || this.selection.first().system,
       click: () => this.deleteRoleModal(),
       name: 'Delete'
index 5fd4abeb3d0c4464a8d04b47a7f9f9eb1f112c3c..bdce37578083ec079e4c7c58df100f41c264c025 100644 (file)
@@ -53,7 +53,7 @@ export class UserListComponent implements OnInit {
     };
     const deleteAction: CdTableAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       click: () => this.deleteUserModal(),
       name: 'Delete'
     };
index 7e27c85ba4f2336c61871e6f3c3e777ceb3aad45..75635444f770c32f5b7d98d704834315786d9d1d 100644 (file)
@@ -20,7 +20,7 @@ export class MockModule {}
     <button type="button"
         class="btn btn-sm btn-primary"
         (click)="openCtrlDriven()">
-      <i class="fa fa-fw fa-trash"></i>Deletion Ctrl-Test
+      <i class="fa fa-fw fa-times"></i>Deletion Ctrl-Test
       <ng-template #ctrlDescription>
         The spinner is handled by the controller if you have use the modal as ViewChild in order to
         use it's functions to stop the spinner or close the dialog.
@@ -30,7 +30,7 @@ export class MockModule {}
     <button type="button"
             class="btn btn-sm btn-primary"
             (click)="openModalDriven()">
-      <i class="fa fa-fw fa-trash"></i>Deletion Modal-Test
+      <i class="fa fa-fw fa-times"></i>Deletion Modal-Test
       <ng-template #modalDescription>
         The spinner is handled by the modal if your given deletion function returns a Observable.
       </ng-template>
index 970bb421ec1a74a7316686655b1043d9e26f0ef0..cdd1cee67aced6c7a8e6b4e65038daa3c57cd0b4 100644 (file)
@@ -64,7 +64,7 @@ describe('TableActionsComponent', () => {
     };
     deleteAction = {
       permission: 'delete',
-      icon: 'fa-trash-o',
+      icon: 'fa-times',
       buttonCondition: (selection: CdTableSelection) => selection.hasSelection,
       disable: (selection: CdTableSelection) =>
         !selection.hasSelection || selection.first().cdExecuting,