mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-08 17:24:08 +00:00
Update config (#5444)
* gui: Update config from remote after saving (fixes #5354) * Refresh is async :(
This commit is contained in:
parent
93ae9a1c2e
commit
801e9b57eb
@ -1211,13 +1211,14 @@ angular.module('syncthing.core')
|
||||
}
|
||||
};
|
||||
$http.post(urlbase + '/system/config', cfg, opts).success(function () {
|
||||
$http.get(urlbase + '/system/config/insync').success(function (data) {
|
||||
$scope.configInSync = data.configInSync;
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
});
|
||||
}).error($scope.emitHTTPError);
|
||||
refreshConfig();
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
}).error(function (data, status, headers, config) {
|
||||
refreshConfig();
|
||||
$scope.emitHTTPError(data, status, headers, config);
|
||||
});
|
||||
};
|
||||
|
||||
$scope.urVersions = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user