]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: NFS list should display the "Pseudo Path" 30529/head
authorRicardo Marques <rimarques@suse.com>
Mon, 16 Sep 2019 10:30:39 +0000 (11:30 +0100)
committerRicardo Marques <rimarques@suse.com>
Mon, 23 Sep 2019 20:44:37 +0000 (21:44 +0100)
Fixes: https://tracker.ceph.com/issues/41815
Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit 6e8f122c170b8a9ff89b71ea8c77a816c687ae12)

src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.ts

index 2a52098923e092d9c04ad6d35c5e796e3bde4af5..adb1dfb098af8d39b670fd6287ec9b015a171380 100644 (file)
@@ -98,11 +98,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',
@@ -134,7 +139,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();
         }