From 3667a9f06fa0aa76a97017c7d8ae72c81c93a9b1 Mon Sep 17 00:00:00 2001 From: dkanada Date: Thu, 28 May 2020 03:35:45 +0900 Subject: [PATCH] revert self restart check --- src/controllers/dashboard/dashboard.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/dashboard/dashboard.js b/src/controllers/dashboard/dashboard.js index f91f4e01ef..1256f60074 100644 --- a/src/controllers/dashboard/dashboard.js +++ b/src/controllers/dashboard/dashboard.js @@ -179,6 +179,12 @@ define(['datetime', 'events', 'itemHelper', 'serverNotifications', 'dom', 'globa view.querySelector('#operatingSystem').innerHTML = globalize.translate('DashboardOperatingSystem', systemInfo.OperatingSystem); view.querySelector('#architecture').innerHTML = globalize.translate('DashboardArchitecture', systemInfo.SystemArchitecture); + if (systemInfo.CanSelfRestart) { + view.querySelector('#btnRestartServer').classList.remove('hide'); + } else { + view.querySelector('#btnRestartServer').classList.add('hide'); + } + view.querySelector('#cachePath').innerHTML = systemInfo.CachePath; view.querySelector('#logPath').innerHTML = systemInfo.LogPath; view.querySelector('#transcodePath').innerHTML = systemInfo.TranscodingTempPath;