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

update shared components

This commit is contained in:
Luke Pulverenti 2016-02-22 13:25:45 -05:00
parent 912bd57ca0
commit 39fe608c2d
7 changed files with 122 additions and 62 deletions

View file

@ -713,18 +713,12 @@ var Dashboard = {
if (!apiClient) {
return new Promise(function (resolve, reject) {
reject();
});
return Promise.reject();
}
var cachedInfo = Dashboard.pluginSecurityInfo;
if (cachedInfo) {
return new Promise(function (resolve, reject) {
resolve(cachedInfo);
});
return Promise.resolve(cachedInfo);
}
return apiClient.ajax({
@ -2002,14 +1996,15 @@ var AppInfo = {};
return Globalize;
});
define('dialogText', [], getDialogText());
define('dialogText', ['globalize'], getDialogText());
}
function getDialogText() {
return function () {
return function (globalize) {
return {
buttonOk: 'ButtonOk',
buttonCancel: 'ButtonCancel'
get: function (text) {
return globalize.translate('Button' + text);
}
};
};
}