Browse Source

gui: Disable file pull order when for send-only (fixes #6807) #6821

Jack Croft 5 years ago
parent
commit
8cbdf1e1de
1 changed files with 4 additions and 1 deletions
  1. 4 1
      gui/default/syncthing/folder/editFolderModalView.html

+ 4 - 1
gui/default/syncthing/folder/editFolderModalView.html

@@ -209,7 +209,7 @@
                 </div>
                 <div class="col-md-6 form-group">
                   <label translate>File Pull Order</label>
-                  <select class="form-control" ng-model="currentFolder.order">
+                  <select class="form-control" ng-model="currentFolder.order" ng-if="currentFolder.type != 'sendonly'">
                     <option value="random" translate>Random</option>
                     <option value="alphabetic" translate>Alphabetic</option>
                     <option value="smallestFirst" translate>Smallest First</option>
@@ -217,6 +217,9 @@
                     <option value="oldestFirst" translate>Oldest First</option>
                     <option value="newestFirst" translate>Newest First</option>
                   </select>
+                  <select class="form-control" ng-if="currentFolder.type == 'sendonly'" disabled>
+                    <option value="disabled" translate>Disabled</option>
+                  </select>
                 </div>
               </div>