]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix CephFS's Directories not showing 35381/head
authorTiago Melo <tmelo@suse.com>
Thu, 4 Jun 2020 10:29:51 +0000 (10:29 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 4 Jun 2020 10:33:11 +0000 (10:33 +0000)
This is a regretion introduced in fdd8ec8ca9e38bc0cf9a7b31f232b0322b46782a.

We no longer need to check if a tab is selected to load the content.

In that commit we removed the logic that updated the conditional variable,
but  missed removing its use.

Fixes: https://tracker.ceph.com/issues/45877
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts

index 1dd6b4304751d63d52c8b94b7c23f05f848aba70..cc1f8226ed732abb6a3ac9daf5619ecf74498ef9 100644 (file)
@@ -27,9 +27,7 @@
       <a ngbNavLink
          i18n>Directories</a>
       <ng-template ngbNavContent>
-        <cd-cephfs-directories *ngIf="directoriesSelected"
-                               [id]="id">
-        </cd-cephfs-directories>
+        <cd-cephfs-directories [id]="id"></cd-cephfs-directories>
       </ng-template>
     </li>
     <li ngbNavItem>
index 454922c00a0e6b8c2b862426d22e9dfb1a4984d3..3a24dec2ec9084892f1b5f07f4e6fb375661e210 100644 (file)
@@ -37,9 +37,6 @@ export class CephfsTabsComponent implements OnChanges, OnDestroy {
     name: ''
   };
 
-  // Directories
-  directoriesSelected = false;
-
   private data: any;
   private reloadSubscriber: Subscription;