global var snackbarTimeout for e2e
This commit is contained in:
parent
506d6e0688
commit
e6bba9e20e
|
@ -10,9 +10,10 @@ export default class App {
|
|||
constructor($rootScope) {
|
||||
this.loaderStatus = 0;
|
||||
this.$rootScope = $rootScope;
|
||||
this.timeout = window.snackbarTimeout || 2000;
|
||||
}
|
||||
show(message) {
|
||||
if (this.snackbar) this.snackbar.show({message: message});
|
||||
if (this.snackbar) this.snackbar.show({message: message, timeout: this.timeout});
|
||||
}
|
||||
showMessage(message) {
|
||||
this.show(message);
|
||||
|
|
Loading…
Reference in New Issue