Files
jellyfin-web/src/apps/wizard/controllers/finish/index.js
T
2025-04-22 08:48:34 -04:00

19 lines
515 B
JavaScript

import loading from 'components/loading/loading';
import { ServerConnections } from 'lib/jellyfin-apiclient';
function onFinish() {
loading.show();
const apiClient = ServerConnections.currentApiClient();
apiClient.ajax({
url: apiClient.getUrl('Startup/Complete'),
type: 'POST'
}).then(function () {
loading.hide();
window.location.href = '';
});
}
export default function (view) {
view.querySelector('.btnWizardNext').addEventListener('click', onFinish);
}