commit 071688ed417aa4900fc3e749796b81305379e801
parent affa52e2152f450c6b296c8c68a72da003c7fcee
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 12 Mar 2018 19:50:06 +0100
Keep the toast until the user dismisses it
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/papers-list/papers-list.component.ts b/src/app/papers-list/papers-list.component.ts
@@ -45,7 +45,8 @@ export class PapersListComponent {
data => { this.data = this.chunk(data, 3); },
err => {
this.toastr.error(err['error'], 'Error connecting API', {
- positionClass: 'toast-top-center'
+ positionClass: 'toast-top-center',
+ disableTimeOut: true
});
throw err;
},
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts
@@ -53,7 +53,8 @@ export class TweetListComponent implements OnInit {
data => { this.data = this.chunk(data.tweets, 3); },
err => {
this.toastr.error(err['error'], 'Error connecting API', {
- positionClass: 'toast-top-center'
+ positionClass: 'toast-top-center',
+ disableTimeOut: true
});
throw err;
},