mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added a config setting to denote completion of the startup wizard
This commit is contained in:
parent
81911cd20b
commit
f0133d6189
2 changed files with 17 additions and 1 deletions
16
Html/scripts/WizardFinishPage.js
Normal file
16
Html/scripts/WizardFinishPage.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
var WizardFinishPage = {
|
||||||
|
|
||||||
|
onFinish: function() {
|
||||||
|
|
||||||
|
ApiClient.getServerConfiguration().done(function (config) {
|
||||||
|
|
||||||
|
config.IsStartupWizardCompleted = true;
|
||||||
|
|
||||||
|
ApiClient.updateServerConfiguration(config).done(function() {
|
||||||
|
Dashboard.navigate('dashboard.html');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
<div class="wizardNavigation">
|
<div class="wizardNavigation">
|
||||||
<button type="button" data-iconpos="left" data-icon="arrow-left" data-inline="true" onclick="history.back();">Previous</button>
|
<button type="button" data-iconpos="left" data-icon="arrow-left" data-inline="true" onclick="history.back();">Previous</button>
|
||||||
<button type="button" data-iconpos="right" data-icon="wrench" data-inline="true" onclick="Dashboard.navigate('dashboard.html');" data-theme="b">Go to the Dashboard</button>
|
<button type="button" data-iconpos="right" data-icon="wrench" data-inline="true" onclick="WizardFinishPage.onFinish();" data-theme="b">Go to the Dashboard</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue