mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
make it clear the restart button is only restarting mb3
This commit is contained in:
parent
56532b90c0
commit
13ed0e427d
2 changed files with 15 additions and 1 deletions
|
@ -55,7 +55,9 @@
|
||||||
<p><a href="scheduledtasks.html">Manage Scheduled Tasks</a></p>
|
<p><a href="scheduledtasks.html">Manage Scheduled Tasks</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top: 2em;"><button type="button" data-icon="refresh" data-mini="true" data-inline="true" onclick="$(this).button('disable');Dashboard.restartServer();">Restart server</button></div>
|
<div style="margin-top: 2em;">
|
||||||
|
<button type="button" data-icon="refresh" data-mini="true" data-inline="true" onclick="DashboardPage.restart();">Restart MB Server</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="display: none; margin-top: 4em;" id="contribute">
|
<div style="display: none; margin-top: 4em;" id="contribute">
|
||||||
<h3 style="padding-left: 1em;">Help improve Media Browser</h3>
|
<h3 style="padding-left: 1em;">Help improve Media Browser</h3>
|
||||||
|
|
|
@ -472,6 +472,18 @@
|
||||||
DashboardPage.pollForInfo();
|
DashboardPage.pollForInfo();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
restart: function () {
|
||||||
|
|
||||||
|
Dashboard.confirm("Are you sure you wish to restart Media Browser Server?", "Restart", function (result) {
|
||||||
|
|
||||||
|
if (result) {
|
||||||
|
$(this).button('disable');
|
||||||
|
Dashboard.restartServer();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue