This commit is contained in:
@@ -1749,6 +1749,10 @@ angular.module('syncthing.core')
|
||||
$scope.saveConfig();
|
||||
};
|
||||
|
||||
$scope.dismissPendingDevice = function (deviceID) {
|
||||
$http.delete(urlbase + '/cluster/pending/devices?device=' + encodeURIComponent(deviceID));
|
||||
};
|
||||
|
||||
$scope.unignoreDeviceFromTemporaryConfig = function (ignoredDevice) {
|
||||
$scope.tmpRemoteIgnoredDevices = $scope.tmpRemoteIgnoredDevices.filter(function (existingIgnoredDevice) {
|
||||
return ignoredDevice.deviceID !== existingIgnoredDevice.deviceID;
|
||||
@@ -2220,6 +2224,11 @@ angular.module('syncthing.core')
|
||||
}
|
||||
};
|
||||
|
||||
$scope.dismissPendingFolder = function (folderID, deviceID) {
|
||||
$http.delete(urlbase + '/cluster/pending/folders?folder=' + encodeURIComponent(folderID)
|
||||
+ '&device=' + encodeURIComponent(deviceID));
|
||||
};
|
||||
|
||||
$scope.sharesFolder = function (folderCfg) {
|
||||
var names = [];
|
||||
folderCfg.devices.forEach(function (device) {
|
||||
|
||||
Reference in New Issue
Block a user