1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

- Add Local settings.

- Add Language settings synced back.
This commit is contained in:
Gunther Brunner 2014-03-13 21:03:41 +09:00
parent 710a5daeab
commit eaaf6a36bd
11 changed files with 137 additions and 50 deletions

View file

@ -0,0 +1,24 @@
module.exports = function ($scope, SettingsService) {
$scope.resetSettings = function () {
SettingsService.clearAll()
}
$scope.savedTo = SettingsService.getDriver()
// $scope.resetSettings = function () {
// var title = 'Reset Settings';
// var msg = 'Are you sure you want to revert all settings to their default values?';
// var btns = [
// {result: 'cancel', label: 'Cancel'},
// {result: 'ok', label: 'OK', cssClass: 'btn-primary'}
// ];
// $dialog.messageBox(title, msg, btns)
// .open()
// .then(function (result) {
// if (result === 'ok') {
// //SettingsService.clearAll();
// }
// });
// };
}