gui: Reflect change in untrusted in sharing tab (#7201)
This commit is contained in:
@@ -2637,9 +2637,9 @@ angular.module('syncthing.core')
|
|||||||
id: '@',
|
id: '@',
|
||||||
label: '@',
|
label: '@',
|
||||||
folderType: '@',
|
folderType: '@',
|
||||||
|
untrusted: '=',
|
||||||
},
|
},
|
||||||
link: function(scope, elem, attrs) {
|
link: function(scope, elem, attrs) {
|
||||||
scope.untrusted = attrs.untrusted === 'true';
|
|
||||||
var plain = false;
|
var plain = false;
|
||||||
scope.togglePasswordVisibility = function() {
|
scope.togglePasswordVisibility = function() {
|
||||||
scope.plain = !scope.plain;
|
scope.plain = !scope.plain;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
<a href="#" ng-click="selectAllSharedFolders(false)" translate>Deselect All</a></small>
|
<a href="#" ng-click="selectAllSharedFolders(false)" translate>Deselect All</a></small>
|
||||||
</p>
|
</p>
|
||||||
<div class="form-group" ng-repeat="folder in currentSharing.shared">
|
<div class="form-group" ng-repeat="folder in currentSharing.shared">
|
||||||
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabel(folder.id)}}" folder-type="{{folder.type}}" untrusted="{{currentDevice.untrusted}}" />
|
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabel(folder.id)}}" folder-type="{{folder.type}}" untrusted="currentDevice.untrusted" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-horizontal" ng-if="currentSharing.unrelated.length">
|
<div class="form-horizontal" ng-if="currentSharing.unrelated.length">
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<span translate>There are no folders to share with this device.</span>
|
<span translate>There are no folders to share with this device.</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="form-group" ng-repeat="folder in currentSharing.unrelated">
|
<div class="form-group" ng-repeat="folder in currentSharing.unrelated">
|
||||||
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabel(folder.id)}}" folder-type="{{folder.type}}" untrusted="{{currentDevice.untrusted}}" />
|
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabel(folder.id)}}" folder-type="{{folder.type}}" untrusted="currentDevice.untrusted" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<a href="#" ng-click="selectAllSharedDevices(false)" translate>Deselect All</a></small>
|
<a href="#" ng-click="selectAllSharedDevices(false)" translate>Deselect All</a></small>
|
||||||
</p>
|
</p>
|
||||||
<div class="form-group" ng-repeat="device in currentSharing.shared">
|
<div class="form-group" ng-repeat="device in currentSharing.shared">
|
||||||
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{device.deviceID}}" label="{{deviceName(device)}}" folder-type="{{currentFolder.type}}" untrusted="{{device.untrusted}}" />
|
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{device.deviceID}}" label="{{deviceName(device)}}" folder-type="{{currentFolder.type}}" untrusted="device.untrusted" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-horizontal" ng-if="currentSharing.unrelated.length || otherDevices().length <= 0">
|
<div class="form-horizontal" ng-if="currentSharing.unrelated.length || otherDevices().length <= 0">
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<span translate>There are no devices to share this folder with.</span>
|
<span translate>There are no devices to share this folder with.</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="form-group" ng-repeat="device in currentSharing.unrelated" ng-init="id = device.deviceID; folder = currentFolder">
|
<div class="form-group" ng-repeat="device in currentSharing.unrelated" ng-init="id = device.deviceID; folder = currentFolder">
|
||||||
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{device.deviceID}}" label="{{deviceName(device)}}" folder-type="{{currentFolder.type}}" untrusted="{{device.untrusted}}" />
|
<share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{device.deviceID}}" label="{{deviceName(device)}}" folder-type="{{currentFolder.type}}" untrusted="device.untrusted" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user