]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: clean up fs standby list when empty
authorJohn Spray <john.spray@redhat.com>
Thu, 27 Jul 2017 15:42:16 +0000 (11:42 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 12:20:18 +0000 (08:20 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/mgr/dashboard/filesystem.html

index 761e5ff42fadfa5cefb80e60fccd1c7c381ce5f9..cf6f30243cdec533ab5f44d8e224758b39a9532c 100644 (file)
         <div class="box-body">
             <table>
                 <thead>
-                <tr>
+                <tr rv-show="standbys | length">
                     <th>Daemon</th>
                 </tr>
                 </thead>
                 <tr rv-each-standby="standbys">
                     <td>{standby.name}</td>
                 </tr>
+                <tr class="ceph-none-found" rv-hide="standbys | length">
+                    <td>None found</td>
+                </tr>
                 </tbody>
             </table>
         </div>