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

20 lines
477 B
JavaScript
Raw Normal View History

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