mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-24 15:38:27 +00:00
gui: Hide select/deselect all buttons if there are no devices (fixes #6056)
This commit is contained in:
parent
7bad9b3a11
commit
7dc4ac6e1f
@ -46,11 +46,14 @@
|
|||||||
<div id="folder-sharing" class="tab-pane">
|
<div id="folder-sharing" class="tab-pane">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label translate for="devices">Share With Devices</label>
|
<label translate for="devices">Share With Devices</label>
|
||||||
<p class="help-block">
|
<p class="help-block" ng-if="otherDevices().length > 0">
|
||||||
<span translate>Select the devices to share this folder with.</span> 
|
<span translate>Select the devices to share this folder with.</span> 
|
||||||
<small><a href="#" ng-click="selectAllDevices()" translate>Select All</a> 
|
<small><a href="#" ng-click="selectAllDevices()" translate>Select All</a> 
|
||||||
<a href="#" ng-click="deSelectAllDevices()" translate>Deselect All</a></small>
|
<a href="#" ng-click="deSelectAllDevices()" translate>Deselect All</a></small>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="help-block" ng-if="otherDevices().length <= 0">
|
||||||
|
<span translate>There are no devices to share this folder with.</span>
|
||||||
|
</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4" ng-repeat="device in otherDevices()">
|
<div class="col-md-4" ng-repeat="device in otherDevices()">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user