1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/controllers/wizard/finish/index.js

17 lines
422 B
JavaScript
Raw Normal View History

2020-08-14 08:46:34 +02:00
import loading from '../../../components/loading/loading';
2018-10-23 01:05:09 +03:00
2020-07-17 19:04:56 +01:00
function onFinish() {
loading.show();
ApiClient.ajax({
url: ApiClient.getUrl('Startup/Complete'),
type: 'POST'
}).then(function () {
loading.hide();
window.location.href = 'index.html';
});
}
2019-10-08 01:28:15 +03:00
2020-07-17 19:04:56 +01:00
export default function (view, params) {
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
}