mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +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.post(urlbase + '/system/config', cfg, opts).success(function () {
|
||||||
$http.get(urlbase + '/system/config/insync').success(function (data) {
|
refreshConfig();
|
||||||
$scope.configInSync = data.configInSync;
|
|
||||||
if (cb) {
|
if (cb) {
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
}).error(function (data, status, headers, config) {
|
||||||
|
refreshConfig();
|
||||||
|
$scope.emitHTTPError(data, status, headers, config);
|
||||||
});
|
});
|
||||||
}).error($scope.emitHTTPError);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.urVersions = function () {
|
$scope.urVersions = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user