Remove Emby Connect from wizard
This commit is contained in:
parent
8bbe251f95
commit
87cae0159f
3 changed files with 6 additions and 20 deletions
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
define(["loading", "connectHelper", "globalize", "dashboardcss", "emby-input", "emby-button", "emby-linkbutton"], function(loading, connectHelper, globalize) {
|
||||
define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "emby-linkbutton"], function(loading, globalize) {
|
||||
"use strict";
|
||||
|
||||
function getApiClient() {
|
||||
|
@ -26,14 +26,12 @@ define(["loading", "connectHelper", "globalize", "dashboardcss", "emby-input", "
|
|||
apiClient.ajax({
|
||||
type: "POST",
|
||||
data: {
|
||||
Name: form.querySelector("#txtUsername").value,
|
||||
ConnectUserName: form.querySelector("#txtConnectUserName").value
|
||||
Name: form.querySelector("#txtUsername").value
|
||||
},
|
||||
url: apiClient.getUrl("Startup/User"),
|
||||
dataType: "json"
|
||||
}).then(onUpdateUserComplete, function(response) {
|
||||
response && response.status;
|
||||
connectHelper.showLinkUserErrorMessage(form.querySelector("#txtConnectUserName").value)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -46,7 +44,7 @@ define(["loading", "connectHelper", "globalize", "dashboardcss", "emby-input", "
|
|||
var page = this,
|
||||
apiClient = getApiClient();
|
||||
apiClient.getJSON(apiClient.getUrl("Startup/User")).then(function(user) {
|
||||
page.querySelector("#txtUsername").value = user.Name || "", page.querySelector("#txtConnectUserName").value = user.ConnectUserName || "", loading.hide()
|
||||
page.querySelector("#txtUsername").value = user.Name || "", loading.hide()
|
||||
})
|
||||
}
|
||||
return function(view, params) {
|
||||
|
@ -56,4 +54,4 @@ define(["loading", "connectHelper", "globalize", "dashboardcss", "emby-input", "
|
|||
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
|
||||
}), view.addEventListener("viewshow", onViewShow)
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -18,18 +18,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="verticalSection verticalSection-extrabottompadding">
|
||||
<h2 class="sectionTitle">${HeaderOptionalLinkEmbyAccount}</h2>
|
||||
|
||||
<div class="inputContainer">
|
||||
<input is="emby-input" type="text" id="txtConnectUserName" label="${LabelConnectUserName}" />
|
||||
<div class="fieldDescription">
|
||||
<div>${LabelConnectUserNameHelp}</div>
|
||||
<div style="margin-top: .7em;"><a is="emby-linkbutton" class="button-link" href="https://github.com/jellyfin/jellyfin" target="_blank">${ButtonLearnMoreAboutEmbyConnect}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wizardNavigation">
|
||||
<button is="emby-button" type="button" class="raised button-cancel" onclick="history.back();"><i class="md-icon">arrow_back</i><span>${LabelPrevious}</span></button>
|
||||
<button is="emby-button" type="submit" class="raised button-submit"><span>${LabelNext}</span><i class="md-icon">arrow_forward</i></button>
|
||||
|
@ -38,4 +26,4 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue