mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
minor improvements to plugin pages
This commit is contained in:
parent
b3fb614ff5
commit
13eeabf267
@ -33,7 +33,7 @@ function populateVersions(packageInfo, page, installedPlugin) {
|
||||
$('#pCurrentVersion', page).hide().html('');
|
||||
}
|
||||
|
||||
const packageVersion = packageInfo.versions[0];
|
||||
const packageVersion = packageInfo.versions.sort().pop();
|
||||
if (packageVersion) {
|
||||
selectmenu.val(packageVersion.version);
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
|
||||
if (configPageUrl) {
|
||||
html += `<a class="cardImageContainer" is="emby-linkbutton" style="margin:0;padding:0" href="${configPageUrl}">`;
|
||||
} else {
|
||||
html += '<div class="cardImageContainer noConfigPluginCard noHoverEffect emby-button">';
|
||||
html += '<div class="cardImageContainer noConfigPluginCard noHoverEffect emby-button" style="margin:0;padding:0">';
|
||||
}
|
||||
|
||||
if (plugin.HasImage) {
|
||||
@ -87,12 +87,10 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += "<div class='cardText'>";
|
||||
html += configPage && configPage.DisplayName ? configPage.DisplayName : plugin.Name;
|
||||
html += `<br/>${globalize.translate('LabelStatus')} ${plugin.Status}</div>`;
|
||||
html += "<div class='cardText cardText-secondary'>";
|
||||
html += plugin.Version;
|
||||
html += '<div class="cardText">'
|
||||
html += `${plugin.Name}<span class='cardText cardText-secondary'>${plugin.Version}</span>`;
|
||||
html += '</div>';
|
||||
html += `<div class="cardText">${globalize.translate('LabelStatus')} ${plugin.Status}</div>`;
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
@ -161,7 +159,7 @@ function showPluginMenu(page, elem) {
|
||||
menuItems.push({
|
||||
name: globalize.translate('EnablePlugin'),
|
||||
id: 'enable',
|
||||
icon: 'mode_enable'
|
||||
icon: 'check_circle_outline'
|
||||
});
|
||||
}
|
||||
|
||||
@ -169,7 +167,7 @@ function showPluginMenu(page, elem) {
|
||||
menuItems.push({
|
||||
name: globalize.translate('DisablePlugin'),
|
||||
id: 'disable',
|
||||
icon: 'mode_disable'
|
||||
icon: 'do_not_disturb'
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ export async function serverAddress() {
|
||||
}));
|
||||
}).then(configs => {
|
||||
const selection = configs.find(obj => !obj.config.StartupWizardCompleted) || configs[0];
|
||||
return Promise.resolve(selection.url);
|
||||
return Promise.resolve(selection?.url);
|
||||
}).catch(error => {
|
||||
console.log(error);
|
||||
return Promise.resolve();
|
||||
|
@ -1457,8 +1457,8 @@
|
||||
"LabelEnableIP4Help": "Enables IPv4 functionality.",
|
||||
"LabelEnableIP4": "Enable IPv4:",
|
||||
"HeaderNetworking": "IP Protocols",
|
||||
"EnablePlugin": "Enable Plugin",
|
||||
"DisablePlugin": "Disable Plugin",
|
||||
"EnablePlugin": "Enable",
|
||||
"DisablePlugin": "Disable",
|
||||
"YoutubeDenied": "Requested video is not allowed to be played in embedded players.",
|
||||
"YoutubeNotFound": "Video not found.",
|
||||
"YoutubePlaybackError": "Requested video cannot be played.",
|
||||
|
@ -179,8 +179,8 @@
|
||||
"DirectStreamHelp1": "The video stream is compatible with the device, but has an incompatible audio format (DTS, TRUEHD, etc) or number of audio channels. The video stream will be repackaged losslessly on the fly before being sent to the device. Only the audio stream will be transcoded.",
|
||||
"DirectStreamHelp2": "Power consumed by direct streaming usually depends on the audio profile. Only the video stream is lossless.",
|
||||
"DirectStreaming": "Direct streaming",
|
||||
"EnablePlugin": "Enable Plugin",
|
||||
"DisablePlugin": "Disable Plugin",
|
||||
"EnablePlugin": "Enable",
|
||||
"DisablePlugin": "Disable",
|
||||
"Disc": "Disc",
|
||||
"Disconnect": "Disconnect",
|
||||
"Display": "Display",
|
||||
|
Loading…
Reference in New Issue
Block a user