mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Merge branch 'increase-toast-duration' into dev
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user