Files
awx/awx/ui/client/src/license/license.route.js

30 lines
678 B
JavaScript

/*************************************************
* Copyright (c) 2016 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
import {templateUrl} from '../shared/template-url/template-url.factory';
import { N_ } from '../i18n';
export default {
name: 'license',
route: '/license',
templateUrl: templateUrl('license/license'),
controller: 'licenseController',
data: {},
ncyBreadcrumb: {
parent: 'setup',
label: N_('LICENSE')
},
resolve: {
features: ['CheckLicense', '$rootScope',
function(CheckLicense, $rootScope) {
if($rootScope.licenseMissing === undefined){
return CheckLicense.notify();
}
}]
},
};