1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00
OpenSTF/res/app/settings/local/local-settings-controller.js
Gunther Brunner eaaf6a36bd - Add Local settings.
- Add Language settings synced back.
2014-03-13 21:03:41 +09:00

24 lines
679 B
JavaScript

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();
// }
// });
// };
}