Hard override on changes from master repo

This commit is contained in:
Jakob Borg
2014-06-16 10:47:02 +02:00
parent 12eda0449a
commit 26ebbee877
5 changed files with 42 additions and 3 deletions

View File

@@ -627,6 +627,12 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
}
};
$scope.override = function (repo) {
$http.post(urlbase + "/model/override?repo=" + encodeURIComponent(repo)).success(function () {
$scope.refresh();
});
};
$scope.init();
setInterval($scope.refresh, 10000);
});