Added a config setting to denote completion of the startup wizard

This commit is contained in:
LukePulverenti 2013-03-04 11:56:29 -05:00
parent 81911cd20b
commit f0133d6189
2 changed files with 17 additions and 1 deletions

View 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');
});
});
}
};

View File

@ -16,7 +16,7 @@
<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="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>