global var snackbarTimeout for e2e

This commit is contained in:
Daniel Herrero 2018-01-25 11:35:41 +01:00
parent 506d6e0688
commit e6bba9e20e
1 changed files with 2 additions and 1 deletions

View File

@ -10,9 +10,10 @@ export default class App {
constructor($rootScope) { constructor($rootScope) {
this.loaderStatus = 0; this.loaderStatus = 0;
this.$rootScope = $rootScope; this.$rootScope = $rootScope;
this.timeout = window.snackbarTimeout || 2000;
} }
show(message) { show(message) {
if (this.snackbar) this.snackbar.show({message: message}); if (this.snackbar) this.snackbar.show({message: message, timeout: this.timeout});
} }
showMessage(message) { showMessage(message) {
this.show(message); this.show(message);