-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ descriptive text for nav links in cs view + descriptive text for reorder widgets buttons + fix screenSizeObserver reports + add notifications on control scheme start/stop
- Loading branch information
1 parent
c48f107
commit e3ff14b
Showing
11 changed files
with
82 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
modules/store/src/lib/effects/control-scheme/notify-on-control-scheme-started.effect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Actions, createEffect, ofType } from '@ngrx/effects'; | ||
import { inject } from '@angular/core'; | ||
import { map } from 'rxjs'; | ||
|
||
import { CONTROL_SCHEME_ACTIONS, SHOW_NOTIFICATION_ACTIONS } from '../../actions'; | ||
|
||
export const NOTIFY_ON_CONTROL_SCHEME_STARTED_EFFECT = createEffect(( | ||
actions: Actions = inject(Actions), | ||
) => { | ||
return actions.pipe( | ||
ofType(CONTROL_SCHEME_ACTIONS.schemeStarted), | ||
map((action) => { | ||
return SHOW_NOTIFICATION_ACTIONS.info({ | ||
l10nKey: 'controlScheme.runSuccessNotification', | ||
l10nPayload: action | ||
}); | ||
}) | ||
); | ||
}, { functional: true }); |
16 changes: 16 additions & 0 deletions
16
modules/store/src/lib/effects/control-scheme/notify-on-control-scheme-stopped.effect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Actions, createEffect, ofType } from '@ngrx/effects'; | ||
import { inject } from '@angular/core'; | ||
import { map } from 'rxjs'; | ||
|
||
import { CONTROL_SCHEME_ACTIONS, SHOW_NOTIFICATION_ACTIONS } from '../../actions'; | ||
|
||
export const NOTIFY_ON_CONTROL_SCHEME_STOPPED_EFFECT = createEffect(( | ||
actions: Actions = inject(Actions), | ||
) => { | ||
return actions.pipe( | ||
ofType(CONTROL_SCHEME_ACTIONS.schemeStopped), | ||
map(() => { | ||
return SHOW_NOTIFICATION_ACTIONS.info({ l10nKey: 'controlScheme.stopNotification'}); | ||
}) | ||
); | ||
}, { functional: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters