Angular/React: Migrates team creation form to react (#21058)

This commit is contained in:
kay delaney
2019-12-13 08:51:10 +00:00
committed by GitHub
parent 483415ac7c
commit 4dba02dd20
7 changed files with 178 additions and 59 deletions

View File

@@ -244,9 +244,12 @@ export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locati
},
})
.when('/org/teams/new', {
templateUrl: 'public/app/features/teams/partials/create_team.html',
controller: 'CreateTeamCtrl',
controllerAs: 'ctrl',
template: '<react-container />',
resolve: {
roles: () => (config.editorsCanAdmin ? [] : ['Admin']),
component: () =>
SafeDynamicImport(import(/* webpackChunkName: "CreateTeam" */ 'app/features/teams/CreateTeam')),
},
})
.when('/org/teams/edit/:id/:page?', {
template: '<react-container />',