jellyfin-web/dashboard-ui/scripts/wizardfinishpage.js

29 lines
767 B
JavaScript
Raw Normal View History

var WizardFinishPage = {
2013-04-23 12:17:21 -07:00
onFinish: function () {
ApiClient.getServerConfiguration().done(function (config) {
config.IsStartupWizardCompleted = true;
2013-04-23 12:17:21 -07:00
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');
});
});
});
}
};