move wizard and user preference routes to nested folders
This commit is contained in:
parent
a353812400
commit
c0261ee487
30 changed files with 55 additions and 42 deletions
18
src/controllers/wizard/finish/index.html
Normal file
18
src/controllers/wizard/finish/index.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div id="wizardFinishPage" data-role="page" class="page standalonePage wizardPage">
|
||||
<div class="padded-left padded-right padded-top">
|
||||
<div class="ui-corner-all ui-shadow wizardContent">
|
||||
<h1>${LabelYoureDone}</h1>
|
||||
<p style="margin:2em 0;">${WizardCompleted}</p>
|
||||
<div class="wizardNavigation">
|
||||
<button is="emby-button" type="button" class="raised button-cancel" onclick="history.back();">
|
||||
<span class="material-icons arrow_back"></span>
|
||||
<span>${LabelPrevious}</span>
|
||||
</button>
|
||||
<button is="emby-button" type="button" class="raised btnWizardNext button-submit">
|
||||
<span class="material-icons check"></span>
|
||||
<span>${LabelFinish}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
16
src/controllers/wizard/finish/index.js
Normal file
16
src/controllers/wizard/finish/index.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import loading from 'loading';
|
||||
|
||||
function onFinish() {
|
||||
loading.show();
|
||||
ApiClient.ajax({
|
||||
url: ApiClient.getUrl('Startup/Complete'),
|
||||
type: 'POST'
|
||||
}).then(function () {
|
||||
loading.hide();
|
||||
window.location.href = 'index.html';
|
||||
});
|
||||
}
|
||||
|
||||
export default function (view, params) {
|
||||
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue