diff options
author | tomasz1986 <twilczynski@naver.com> | 2022-10-21 16:01:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 16:01:41 +0200 |
commit | 8228020ff0e659f4bf5fbdd83b313a7b2ed92d3d (patch) | |
tree | f3e602d034b319f89734dda1ca407fef56186a35 | |
parent | c96f76e1fdfaa38ef5427ac015b99c56c0a32ffe (diff) |
gui: Display folder and device count number (#8615)v1.22.1-rc.2
In large setups, it is currently impossible to know the exact number of
folders and remote devices without counting them manually, either in the
GUI or in config.xml. Thus, to provide this information to the user, add
a specific number right next to both Folders and Remote Devices headers
in the Web GUI. The numbers are only displayed when two or more folders
or devices are present.
Signed-off-by: Tomasz WilczyĆski <twilczynski@naver.com>
-rw-r--r-- | gui/default/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/default/index.html b/gui/default/index.html index e1a200584d..ec3a65b36d 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -336,7 +336,7 @@ <!-- Folder list (top left) --> <div class="col-md-6" aria-labelledby="folder_list" role="region" > - <h3 id="folder_list" translate>Folders</h3> + <h3 id="folder_list"><span translate>Folders</span><span ng-if="folderList().length > 1"> ({{folderList().length}})</span></h3> <div class="panel-group" id="folders"> <div class="panel panel-default" ng-repeat="folder in folderList()"> <button class="btn panel-heading" data-toggle="collapse" data-parent="#folders" data-target="#folder-{{$index}}" aria-expanded="false"> @@ -731,7 +731,7 @@ </div> <!-- Remote devices --> - <h3 translate>Remote Devices</h3> + <h3><span translate>Remote Devices</span> <span ng-if="otherDevices().length > 1"> ({{otherDevices().length}})</span></h3> <div class="panel-group" id="devices"> <div class="panel panel-default" ng-repeat="deviceCfg in otherDevices()"> <button class="btn panel-heading" data-toggle="collapse" data-parent="#devices" data-target="#device-{{$index}}" aria-expanded="false"> |