1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #460 from dhartung/feedback-for-stream-link-copy

Added toast notification when copy-stream is executed
This commit is contained in:
dkanada 2019-09-13 19:30:50 -07:00 committed by GitHub
commit aca14802e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View file

@ -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");
}