Files
stf-DeviceFarmer/res/app/settings/local/local-settings-controller.js
Gunther Brunner a260aa2cf8 - Updated almost all dev dependencies.
- Removed everything grunt (the gettext stuff needs to be converted but was not using yet anyways).
- Update angular-localForage to latest version, all API methords changed.
- Added jshintrc for mocha.
2014-03-20 19:26:48 +09:00

25 lines
673 B
JavaScript

module.exports = function ($scope, SettingsService) {
$scope.resetSettings = function () {
SettingsService.clear()
}
$scope.savedTo = SettingsService.driver()
// $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();
// }
// });
// };
}