Merge branch 'increase-toast-duration' into dev

This commit is contained in:
Oliver Hamlet
2016-04-29 08:39:39 +01:00
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -341,7 +341,7 @@
</loot-plugin-editor>
</div>
</paper-drawer-panel>
<paper-toast id="toast"></paper-toast>
<paper-toast id="toast" duration="4500"></paper-toast>
<paper-dialog id="progressDialog"
modal
entry-animation="fade-in-animation"
+4 -2
View File
@@ -44,8 +44,10 @@
static showNotification(text) {
const toast = document.getElementById('toast');
toast.text = text;
toast.show();
if (toast.opened) {
toast.hide();
}
toast.show(text);
}
};
}));