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

remove connect in ui

This commit is contained in:
Claus Vium 2019-01-04 12:32:24 +01:00
parent 6b3767c880
commit d19c8ed72b
60 changed files with 215 additions and 565 deletions

View file

@ -1,32 +0,0 @@
define(["dialogHelper", "connectHelper", "emby-input", "emby-button", "emby-collapse", "paper-icon-button-light", "formDialogStyle", "emby-linkbutton"], function(dialogHelper, connectHelper) {
"use strict";
return {
show: function() {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest;
xhr.open("GET", "components/guestinviter/connectlink.template.html", !0), xhr.onload = function(e) {
var template = this.response,
dlg = dialogHelper.createDialog({
removeOnClose: !0,
size: "small"
});
dlg.classList.add("ui-body-a"), dlg.classList.add("background-theme-a"), dlg.classList.add("formDialog");
var html = "";
html += Globalize.translateDocument(template), dlg.innerHTML = html, dialogHelper.open(dlg), dlg.addEventListener("close", function() {
dlg.submitted ? resolve() : reject()
}), dlg.querySelector(".btnCancel").addEventListener("click", function(e) {
dialogHelper.close(dlg)
}), dlg.querySelector("form").addEventListener("submit", function(e) {
return ApiClient.getCurrentUser().then(function(user) {
connectHelper.updateUserLink(ApiClient, user, dlg.querySelector("#txtConnectUsername").value).then(function() {
dialogHelper.close(dlg)
}, function() {
dialogHelper.close(dlg)
})
}), e.preventDefault(), !1
})
}, xhr.send()
})
}
}
});

View file

@ -1,32 +0,0 @@
<div class="formDialogHeader">
<button is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1">
<i class="md-icon">&#xE5C4;</i>
</button>
<h3 class="formDialogHeaderTitle">
Jellyfin Connect
</h3>
</div>
<div class="formDialogContent scrollY">
<form class="addUserForm dialogContentInner dialog-content-centered">
<p style="color: orangered;">${MessageConnectAccountRequiredToInviteGuest}</p>
<div class="inputContainer">
<input is="emby-input" type="text" id="txtConnectUsername" value="" label="${LabelConnectUserName}" required />
<div class="fieldDescription">
<div>${LabelConnectUserNameHelp}</div>
<div style="margin-top: .25em;">
<a is="emby-linkbutton" class="button-link" href="https://github.com/jellyfin/jellyfin" target="_blank">${ButtonLearnMoreAboutEmbyConnect}</a>
</div>
</div>
</div>
<div class="formDialogFooter">
<button is="emby-button" type="submit" class="raised button-submit block formDialogFooterItem">
<span>${ButtonSendInvitation}</span>
</button>
</div>
</form>
</div>