1
0
Fork 0
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:
Luke Pulverenti 2016-07-23 01:16:26 -04:00
parent ad885bc1fa
commit 2dc7edb73c
5 changed files with 204 additions and 15 deletions

View file

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