]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: NFS list should display the "Pseudo Path" 30395/head
authorRicardo Marques <rimarques@suse.com>
Mon, 16 Sep 2019 10:30:39 +0000 (11:30 +0100)
committerRicardo Marques <rimarques@suse.com>
Mon, 16 Sep 2019 10:30:39 +0000 (11:30 +0100)
Fixes: https://tracker.ceph.com/issues/41815
Signed-off-by: Ricardo Marques <rimarques@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.ts

index 40e5325cb8635a6ff61296a376eb717240d4798a..9c9b7a9fe757d82b2cc11a50beb7e7da250e7531 100644 (file)
@@ -101,11 +101,16 @@ export class NfsListComponent implements OnInit, OnDestroy {
   ngOnInit() {
     this.columns = [
       {
-        name: this.i18n('Export'),
+        name: this.i18n('Path'),
         prop: 'path',
         flexGrow: 2,
         cellTransformation: CellTemplate.executing
       },
+      {
+        name: this.i18n('Pseudo'),
+        prop: 'pseudo',
+        flexGrow: 2
+      },
       {
         name: this.i18n('Cluster'),
         prop: 'cluster_id',
@@ -137,7 +142,7 @@ export class NfsListComponent implements OnInit, OnDestroy {
           .value();
 
         this.isDefaultCluster = clusters.length === 1 && clusters[0] === '_default_';
-        this.columns[1].isHidden = this.isDefaultCluster;
+        this.columns[2].isHidden = this.isDefaultCluster;
         if (this.table) {
           this.table.updateColumns();
         }