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

update action sheet

This commit is contained in:
Luke Pulverenti 2016-05-20 01:36:57 -04:00
parent 619cad7f41
commit 68ad751b25
9 changed files with 51 additions and 22 deletions

View file

@ -1,5 +1,21 @@
define(['datetime'], function (datetime) {
function renderNoHealthAlertsMessage(page) {
var html = '<p style="padding:0 .5em;display:flex;align-items:center;">';
html += '<iron-icon icon="check" style="margin-right:.5em;background-color: #52B54B;border-radius:1em;color: #fff;"></iron-icon>';
html += Globalize.translate('HealthMonitorNoAlerts') + '</p>';
page.querySelector('.healthMonitor').innerHTML = html;
}
function refreshHealthMonitor(page) {
renderNoHealthAlertsMessage(page);
}
window.DashboardPage = {
newsStartIndex: 0,
@ -44,6 +60,8 @@
$('.swaggerLink', page).attr('href', apiClient.getUrl('swagger-ui/index.html', {
api_key: ApiClient.accessToken()
}));
refreshHealthMonitor(page);
},
onPageHide: function () {