feat(device): Reset user configuration on device (#435)
This commit is contained in:
committed by
László Monda
parent
23af522a48
commit
ba1fff788d
@@ -2,3 +2,4 @@
|
||||
<i class="fa fa-cog"></i>
|
||||
<span>Device settings...</span>
|
||||
</h1>
|
||||
<a (click)="resetUserConfiguration()">Reset user configuration</a>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
|
||||
import { AppState } from '../../../store';
|
||||
import { ResetUserConfigurationAction } from '../../../store/actions/device';
|
||||
|
||||
@Component({
|
||||
selector: 'device-settings',
|
||||
@@ -10,6 +14,10 @@ import { Component } from '@angular/core';
|
||||
})
|
||||
export class DeviceSettingsComponent {
|
||||
|
||||
constructor() {}
|
||||
constructor(private store: Store<AppState>) {
|
||||
}
|
||||
|
||||
resetUserConfiguration() {
|
||||
this.store.dispatch(new ResetUserConfigurationAction());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user