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

update some old string references

This commit is contained in:
dkanada 2019-03-22 12:14:41 -07:00
parent 4df59cc345
commit ed812281bc
5 changed files with 20 additions and 40 deletions

View file

@ -94,7 +94,7 @@ define(['loading', 'events', 'dialogHelper', 'dom', 'layoutManager', 'scrollHelp
// dialogHelper.close(dlg);
//});
dlg.querySelector('.formDialogHeaderTitle').innerHTML = globalize.translate('HeaderRestartingEmbyServer');
dlg.querySelector('.formDialogHeaderTitle').innerHTML = globalize.translate('RestartingServer');
dlg.querySelector('.text').innerHTML = globalize.translate('RestartPleaseWaitMessage');

View file

@ -1,11 +1,6 @@
define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globalize", "loading", "connectionManager", "playMethodHelper", "cardBuilder", "imageLoader", "components/activitylog", "humanedate", "listViewStyle", "emby-linkbutton", "flexStyles", "emby-button", "emby-itemscontainer"], function (datetime, events, itemHelper, serverNotifications, dom, globalize, loading, connectionManager, playMethodHelper, cardBuilder, imageLoader, ActivityLog) {
"use strict";
function onConnectionHelpClick(evt) {
evt.preventDefault();
return false;
}
function buttonEnabled(elem, enabled) {
if (enabled) {
elem.setAttribute("disabled", "");
@ -847,7 +842,6 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
}
var serverId = ApiClient.serverId();
view.querySelector(".btnConnectionHelp").addEventListener("click", onConnectionHelpClick);
view.querySelector(".btnEditServerName").addEventListener("click", onEditServerNameClick);
view.querySelector(".activeDevices").addEventListener("click", onActiveDevicesClick);
view.addEventListener("viewshow", function () {

View file

@ -2,22 +2,17 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
"use strict";
function getApiClient() {
return ApiClient
return ApiClient;
}
function nextWizardPage() {
Dashboard.navigate("wizardlibrary.html")
Dashboard.navigate("wizardlibrary.html");
}
function onUpdateUserComplete(result) {
if (loading.hide(), result.UserLinkResult) {
var msgKey = result.UserLinkResult.IsPending ? "MessagePendingEmbyAccountAdded" : "MessageEmbyAccountAdded";
Dashboard.alert({
message: globalize.translate(msgKey),
title: globalize.translate("HeaderEmbyAccountAdded"),
callback: nextWizardPage
})
} else nextWizardPage()
console.log(result);
loading.hide();
nextWizardPage();
}
function submit(form) {
@ -30,9 +25,7 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
Password: form.querySelector("#txtManualPassword").value
},
url: apiClient.getUrl("Startup/User")
}).then(onUpdateUserComplete, function(response) {
console.log(response);
})
}).then(onUpdateUserComplete);
}
function onSubmit(e) {
@ -50,8 +43,8 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
function onViewShow() {
loading.show();
var page = this,
apiClient = getApiClient();
var page = this;
var apiClient = getApiClient();
apiClient.getJSON(apiClient.getUrl("Startup/User")).then(function(user) {
page.querySelector("#txtUsername").value = user.Name || "";
page.querySelector("#txtManualPassword").value = user.Password || "";
@ -59,10 +52,13 @@ define(["loading", "globalize", "dashboardcss", "emby-input", "emby-button", "em
})
}
return function(view, params) {
view.querySelector(".wizardUserForm").addEventListener("submit", onSubmit), view.addEventListener("viewshow", function() {
view.querySelector(".wizardUserForm").addEventListener("submit", onSubmit);
view.addEventListener("viewshow", function() {
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
}), view.addEventListener("viewhide", function() {
});
view.addEventListener("viewhide", function() {
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
}), view.addEventListener("viewshow", onViewShow)
});
view.addEventListener("viewshow", onViewShow);
}
});

View file

@ -1,30 +1,20 @@
<div id="dashboardPage" data-role="page" class="page type-interior dashboardHomePage fullWidthContent">
<div class="content-primary">
<div class="dashboardSections" style="padding-top:.5em;">
<div class="dashboardColumn dashboardColumn-2-60 dashboardColumn-3-46">
<div class="dashboardSection" style="padding-left: 0;">
<div class="flex align-items-center">
<h3 class="serverNameHeader" style="margin: 0;"></h3>
<button is="paper-icon-button-light" type="button" class="btnEditServerName" style="margin-left: .5em;">
<i class="md-icon">mode_edit</i>
</button>
</div>
<div class="paperList" style="padding: 1em;">
<p id="appVersionNumber">
</p>
<p id="appVersionNumber"></p>
<p id="ports"></p>
<p class="localUrl"></p>
<p class="externalUrl"></p>
<p class="hide">
<a class="btnConnectionHelp" href="#" is="emby-linkbutton">${HowToConnectFromEmbyApps}</a>
</p>
</div>
<div style="margin-top:1em;">
@ -36,13 +26,11 @@
</button>
</div>
<div style="margin-top: 2em;" class="runningTasksContainer hide">
<h3>${HeaderRunningTasks}</h3>
<div id="divRunningTasks" class="paperList" style="padding: 1em;">
</div>
</div>
</div>
<div class="dashboardSection" style="padding-left: 0;">

View file

@ -442,6 +442,7 @@
"HeaderResponseProfile": "Response Profile",
"HeaderResponseProfileHelp": "Response profiles provide a way to customize information sent to the device when playing certain kinds of media.",
"HeaderRestart": "Restart",
"HeaderRestartingServer": "Restarting Server",
"HeaderRevisionHistory": "Revision History",
"HeaderRunningTasks": "Running Tasks",
"HeaderScenes": "Scenes",
@ -955,6 +956,7 @@
"MessageItemsAdded": "Items added.",
"MessageLeaveEmptyToInherit": "Leave empty to inherit settings from a parent item, or the global default value.",
"MessageNoAvailablePlugins": "No available plugins.",
"MessageNoCollectionsAvailable": "Collections allow you to enjoy personalized groupings of Movies, Series, and albums Albums. Click the + button to start creating collections.",
"MessageNoMovieSuggestionsAvailable": "No movie suggestions are currently available. Start watching and rating your movies, and then come back to view your recommendations.",
"MessageNoPluginsInstalled": "You have no plugins installed.",
"MessageNoServersAvailableToConnect": "No servers are available to connect to. If you've been invited to share a server, make sure to accept it below or by clicking the link in the email.",