Add usage reporting preview (closes #395)

This commit is contained in:
Audrius Butkevicius
2014-09-08 23:52:31 +01:00
parent bf7a128142
commit e2a520ff49
4 changed files with 32 additions and 4 deletions

View File

@@ -839,6 +839,13 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
cfg.APIKey = randomString(30, 32);
};
$scope.showURPreview = function () {
$('#settings').modal('hide');
$('#urPreview').modal().on('hidden.bs.modal', function () {
$('#settings').modal();
});
}
$scope.acceptUR = function () {
$scope.config.Options.URAccepted = 1000; // Larger than the largest existing report version
$scope.saveConfig();