mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Add ADB Keys tab.
This commit is contained in:
23
res/app/settings/general/local/local-settings-controller.js
Normal file
23
res/app/settings/general/local/local-settings-controller.js
Normal file
@@ -0,0 +1,23 @@
|
||||
module.exports = function ($scope, SettingsService) {
|
||||
$scope.resetSettings = function () {
|
||||
SettingsService.reset()
|
||||
console.log('Settings cleared')
|
||||
}
|
||||
|
||||
// $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