jellyfin-web/dashboard-ui/scripts/wizardcontroller.js

21 lines
495 B
JavaScript
Raw Normal View History

2016-06-23 10:04:18 -07:00
define([], function () {
2016-10-22 22:11:46 -07:00
'use strict';
2016-06-23 10:04:18 -07:00
function navigateToComponents() {
var apiClient = ApiClient;
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
if (info.HasMediaEncoder) {
2016-10-18 23:27:02 -07:00
Dashboard.navigate('wizardagreement.html');
2016-06-23 10:04:18 -07:00
} else {
Dashboard.navigate('wizardcomponents.html');
}
});
}
return {
2016-10-18 23:27:02 -07:00
navigateToComponents: navigateToComponents
2016-06-23 10:04:18 -07:00
};
});