mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Toast notification when copy-stream is executed
This commit is contained in:
parent
a640781d4e
commit
f1ba5c63c0
4 changed files with 9 additions and 1 deletions
|
@ -319,6 +319,10 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'appRouter',
|
|||
textArea.select();
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
|
||||
require(['toast'], function (toast) {
|
||||
toast(globalize.translate('CopyStreamURLSuccess'));
|
||||
});
|
||||
} catch (err) {
|
||||
console.error("Failed to copy to clipboard");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue