global var snackbarTimeout for e2e
This commit is contained in:
parent
506d6e0688
commit
e6bba9e20e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue