瀏覽代碼

HDFS-14151. RBF: Make the read-only column of Mount Table clearly understandable.

Takanobu Asanuma 6 年之前
父節點
當前提交
3d97142dff

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html

@@ -408,7 +408,7 @@
       <td>{nameserviceId}</td>
       <td>{path}</td>
       <td>{order}</td>
-      <td class="mount-table-icon mount-table-read-only-{readonly}"/>
+      <td align="center" class="mount-table-icon mount-table-read-only-{readonly}" title="{status}"/>
       <td>{ownerName}</td>
       <td>{groupName}</td>
       <td>{mode}</td>

+ 1 - 0
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js

@@ -317,6 +317,7 @@
         for (var i = 0, e = mountTable.length; i < e; ++i) {
           if (mountTable[i].readonly == true) {
             mountTable[i].readonly = "true"
+            mountTable[i].status = "Read only"
           } else {
             mountTable[i].readonly = "false"
           }

+ 1 - 7
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/static/rbf.css

@@ -132,12 +132,6 @@
 }
 
 .mount-table-read-only-true:before {
-    color: #c7254e;
-    content: "\e033";
-}
-
-.mount-table-read-only-false:before {
     color: #5fa341;
-    content: "\e013";
+    content: "\e033";
 }
-