mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
29 lines
755 B
JavaScript
29 lines
755 B
JavaScript
var WizardFinishPage = {
|
|
|
|
onFinish: function () {
|
|
|
|
ApiClient.getServerConfiguration().done(function (config) {
|
|
|
|
config.IsStartupWizardCompleted = true;
|
|
|
|
ApiClient.updateServerConfiguration(config).done(function () {
|
|
|
|
ApiClient.getUsers().done(function (users) {
|
|
|
|
for (var i = 0, length = users.length; i < length; i++) {
|
|
|
|
if (users[i].Configuration.IsAdministrator) {
|
|
Dashboard.setCurrentUser(users[i].Id);
|
|
break;
|
|
}
|
|
|
|
}
|
|
|
|
Dashboard.navigate('dashboard.html');
|
|
});
|
|
});
|
|
});
|
|
|
|
}
|
|
|
|
}; |