]> 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 23:03:27 +0000 (23:03 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 5e64787c0ae0ac2a365c89bf89dfea425adc17d4)

src/pybind/mgr/dashboard/filesystem.html

index c58f1e18fd57c967444e5b84e6a65188d9d49b67..ae3116c53a5015bee1958ee69ada7f15063da1a4 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>