]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Warn the user when creating/editing pools without application tags 40173/head
authorWaad Alkhoury <walkhour@redhat.com>
Thu, 1 Apr 2021 09:07:14 +0000 (11:07 +0200)
committerWaad Alkhoury <walkhour@redhat.com>
Thu, 1 Apr 2021 09:07:14 +0000 (11:07 +0200)
Added warning icon when no application tag is selected

Fixes: https://tracker.ceph.com/issues/40676
Signed-off-by: Waad Alkhoury <walkhour@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.scss

index f62a7283feb8f2d7a26402f8c375ab705957aa68..dd45a4616459a6f911492e1685a16f4e4af08a1c 100644 (file)
                               [selectionLimit]="4"
                               (selection)="appSelection()">
             </cd-select-badges>
+            <i *ngIf="data.applications.selected <= 0"
+               i18n-title
+               title="Pools should be associated with an application tag"
+               class="{{icons.warning}} icon-warning-color">
+            </i>
           </div>
         </div>
-
         <!-- CRUSH -->
         <div *ngIf="isErasure || isReplicated">