feat(notification): Add undoable notification, close #318 (#338)

* feat(notification): Add undoable notification

* feat(notification): Add undoable notification

* feat(notification): Use uhk-header to the notification

* half ready solution

* - fix: "Keymap has been deleted" is displayed for macros.
- When a keymap/macro deletion gets undone, please set the route of the restored keymap/macro.
- When the user switches to another route, please make the undo notification disappear.

* fix(keymap): Store prev user configuration in the application reducer

Store the previous state in application reducer, because refactoring the
user-config reducer is not easy

* feat(keymap): Fix review request
This commit is contained in:
Róbert Kiss
2017-07-23 22:17:53 +02:00
committed by László Monda
parent ce55cac380
commit 42683e32f9
19 changed files with 295 additions and 64 deletions

View File

@@ -106,6 +106,7 @@ import { AppUpdateRendererService } from './services/app-update-renderer.service
import { reducer } from './store';
import { AutoUpdateSettings } from './shared/components/auto-update-settings/auto-update-settings';
import { angularNotifierConfig } from './shared/models/angular-notifier-config';
import { UndoableNotifierComponent } from './shared/components/undoable-notifier';
import { UhkHeader } from './shared/components/uhk-header/uhk-header';
import { AppRendererService } from './services/app-renderer.service';
@@ -166,6 +167,7 @@ import { AppRendererService } from './services/app-renderer.service';
SafeStylePipe,
UpdateAvailableComponent,
AutoUpdateSettings,
UndoableNotifierComponent,
UhkHeader
],
imports: [