-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Action commands and printer notifications (#2586)
* change setNotification to setInfo conforming to standard logging levels and clarifying notification roles * implement printernotification socket event emitter * implement printernotification prompt * handle prompts correctly * add reheating message * update import * starting cleanup * update notification styles * cleanup * clean up * fix codefactor issues * only show notifications with data * improve notifications Co-authored-by: Pierre-Alexis Ciavaldini <[email protected]>
- Loading branch information
1 parent
d64fcbd
commit 8801423
Showing
13 changed files
with
288 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Manual Build with Artifacts | |
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<div | ||
class="notification" | ||
[ngClass]="['notification__border-' + notification?.type, show ? 'notification__show' : '']" | ||
(click)="hideNotification()"> | ||
(click)="hideNotification(true, true)"> | ||
<span class="notification__time">{{ notification?.time | date: 'HH:mm' }}</span> | ||
<span class="notification__heading">{{ notification?.heading }}</span> | ||
<span class="notification__text">{{ notification?.text }}</span> | ||
<span class="notification__close" i18n="@@tap-close">tap this card to close it</span> | ||
<span class="notification__close" i18n="@@tap-close" *ngIf="!notification?.choices">tap this card to close it</span> | ||
<div class="notification-prompt__choices"> | ||
<div | ||
class="notification-prompt__choice" | ||
*ngFor="let choice of notification?.choices; index as i; first as isFirst" | ||
[ngClass]="[isFirst ? 'notification-prompt__choice-first' : '']" | ||
(click)="chooseAction(i, notification?.callback)"> | ||
{{ choice }} | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.