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:
parent
710a5daeab
commit
eaaf6a36bd
11 changed files with 137 additions and 50 deletions
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();
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue