diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-19 16:04:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-19 17:26:52 +0100 |
commit | f8b2c1b4f509c037b9650cca2c5befd21f056df3 (patch) | |
tree | 89d278f9628d657e6aad1b1e15febaf8ff9fcfa9 /client/src/app/app.component.html | |
parent | e0e665f0efa98f2701dd9f5529e99989680481ae (diff) | |
download | PeerTube-f8b2c1b4f509c037b9650cca2c5befd21f056df3.tar.gz PeerTube-f8b2c1b4f509c037b9650cca2c5befd21f056df3.tar.zst PeerTube-f8b2c1b4f509c037b9650cca2c5befd21f056df3.zip |
Refractor notification service
Shorter name and use primeng component
Diffstat (limited to 'client/src/app/app.component.html')
-rw-r--r-- | client/src/app/app.component.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index 03f7e88ed..0489c9558 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html | |||
@@ -38,4 +38,15 @@ | |||
38 | 38 | ||
39 | <ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar> | 39 | <ngx-loading-bar [includeSpinner]="false"></ngx-loading-bar> |
40 | <my-confirm></my-confirm> | 40 | <my-confirm></my-confirm> |
41 | <simple-notifications [options]="notificationOptions"></simple-notifications> | 41 | <p-toast position="bottom-right"> |
42 | <ng-template let-message pTemplate="message"> | ||
43 | <div class="message"> | ||
44 | <h3>{{ message.summary }}</h3> | ||
45 | <p>{{ message.detail }}</p> | ||
46 | </div> | ||
47 | |||
48 | <span *ngIf="message.severity === 'success'" class="glyphicon glyphicon-ok"></span> | ||
49 | <span *ngIf="message.severity === 'info'" class="glyphicon glyphicon-info-sign"></span> | ||
50 | <span *ngIf="message.severity === 'error'" class="glyphicon glyphicon-remove"></span> | ||
51 | </ng-template> | ||
52 | </p-toast> | ||