gui: Sort folders and devices in advanced config modal (#7192)

This commit is contained in:
André Colomb 2020-12-14 16:45:38 +01:00 committed by GitHub
parent 4142a431b5
commit 466e8a5cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2332,6 +2332,8 @@ angular.module('syncthing.core')
$scope.advanced = function () {
$scope.advancedConfig = angular.copy($scope.config);
$scope.advancedConfig.devices.sort(deviceCompare);
$scope.advancedConfig.folders.sort(folderCompare);
$('#advanced').modal('show');
};