mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update toast
This commit is contained in:
parent
b3d91930d3
commit
91cedefe29
39 changed files with 165 additions and 67 deletions
|
@ -4,6 +4,12 @@ define(['paper-toast'], function () {
|
|||
|
||||
return function (options) {
|
||||
|
||||
if (typeof options === 'string') {
|
||||
options = {
|
||||
text: options
|
||||
};
|
||||
}
|
||||
|
||||
var elem = document.createElement("paper-toast");
|
||||
elem.setAttribute('text', options.text);
|
||||
elem.id = 'toast' + (toastId++);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue