import angular from 'angular';
import uiRouter from 'angular-ui-router';
import organizationComponent from './organization.component';
import organizationDetail from './organizationDetail/organizationDetail';

 require('angular-ui-grid/ui-grid.css');

//require('angular-datatables/dist/plugins/columnfilter/angular-datatables.columnfilter.js');
//require('angular-datatables/dist/plugins/bootstrap/angular-datatables.bootstrap.js');
//require('datatables.net-select');
//require('angular-datatables/dist/plugins/select/angular-datatables.select.min.js');

let organizationModule = angular.module('organization', [
  uiRouter,
  'navbar',
  organizationDetail,  
   require('angular-ui-grid')
])

.config(($stateProvider) => {
  "ngInject";
  $stateProvider
    .state('organization', {
      url: '/organization',
      component: 'organization'
    });
})

.run(['Menu', function(Menu){
  Menu.addToMainMenu({ display: "Organization", url: "/organization", requireLogin: true })
}])

.component('organization', organizationComponent)

.name;

export default organizationModule;

import angular from 'angular';
import uiRouter from 'angular-ui-router';
import organizationComponent from './organization.component';
import organizationDetail from './organizationDetail/organizationDetail';

 require('angular-ui-grid/ui-grid.css');

//require('angular-datatables/dist/plugins/columnfilter/angular-datatables.columnfilter.js');
//require('angular-datatables/dist/plugins/bootstrap/angular-datatables.bootstrap.js');
//require('datatables.net-select');
//require('angular-datatables/dist/plugins/select/angular-datatables.select.min.js');

let organizationModule = angular.module('organization', [
  uiRouter,
  'navbar',
  organizationDetail,  
   require('angular-ui-grid')
])

.config(($stateProvider) => {
  "ngInject";
  $stateProvider
    .state('organization', {
      url: '/organization',
      component: 'organization'
    });
})

.run(['Menu', function(Menu){
  Menu.addToMainMenu({ 
    display: "Organization", 
    url: "/organization", 
    requireLogin: true,
    requireDev: true })
}])

.component('organization', organizationComponent)

.name;

export default organizationModule;

Make org a dev function for now
Make org a dev function for now

