Added a config setting to denote completion of the startup wizard

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

No files matched your search

+16
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');
});
});
}
};
+1 -1
View File
@@ -16,7 +16,7 @@ <h2>
<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>