mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve guest add flow
This commit is contained in:
parent
ad885bc1fa
commit
2dc7edb73c
5 changed files with 204 additions and 15 deletions
|
@ -327,25 +327,23 @@
|
|||
});
|
||||
}
|
||||
|
||||
function showLinkUser(page, userId) {
|
||||
|
||||
require(['components/guestinviter/connectlink'], function (connectlink) {
|
||||
|
||||
connectlink.show().then(function () {
|
||||
loadData(page);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function showInvitePopup(page) {
|
||||
|
||||
Dashboard.getCurrentUser().then(function (user) {
|
||||
|
||||
if (!user.ConnectUserId) {
|
||||
|
||||
var msg = Globalize.translate('MessageConnectAccountRequiredToInviteGuest');
|
||||
|
||||
msg += '<br/>';
|
||||
msg += '<br/>';
|
||||
msg += '<a href="useredit.html?userId=' + user.Id + '">' + Globalize.translate('ButtonLinkMyEmbyAccount') + '</a>';
|
||||
msg += '<br/>';
|
||||
|
||||
require(['alert'], function (alert) {
|
||||
alert({
|
||||
title: Globalize.translate('HeaderInviteGuest'),
|
||||
text: msg
|
||||
});
|
||||
});
|
||||
showLinkUser(page, user.Id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue