mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:33:30 +02:00
- Add Local settings.
- Add Language settings synced back.
This commit is contained in:
24
res/app/settings/local/local-settings-controller.js
Normal file
24
res/app/settings/local/local-settings-controller.js
Normal 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();
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
}
|
||||
Reference in New Issue
Block a user