mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 10:45:14 +02:00
Save user settings to the database and embed them to the template for fast access.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
module.exports = function ($scope, SettingsService) {
|
||||
|
||||
$scope.resetSettings = function () {
|
||||
SettingsService.clear()
|
||||
SettingsService.reset()
|
||||
console.log('Settings cleared')
|
||||
}
|
||||
|
||||
$scope.savedTo = SettingsService.driver()
|
||||
|
||||
// $scope.resetSettings = function () {
|
||||
// var title = 'Reset Settings';
|
||||
// var msg = 'Are you sure you want to revert all settings to ' +
|
||||
|
||||
@@ -6,6 +6,3 @@
|
||||
button(ng-click='resetSettings()').btn.btn-danger
|
||||
i.fa.fa-trash-o
|
||||
span(translate) Reset Settings
|
||||
|
||||
p
|
||||
span.text-muted(translate) Saved to: {{savedTo}}
|
||||
|
||||
Reference in New Issue
Block a user