Skip to content

Commit

Permalink
new form termplate and routing rendering properly
Browse files Browse the repository at this point in the history
Co-authored-by: tangoyankee <[email protected]>
  • Loading branch information
horatiorosa and TangoYankee committed Sep 24, 2024
1 parent 0143a9a commit 121a3b6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export default class Router extends EmberRouterScroll {
// TODO: wrap in an authenticated route
Router.map(function() {
// eslint-disable-line
this.route('projects');
this.route('projects', function() {
});

if (config.featureFlagSelfService) {
this.route('projects/new', {path: 'projects/new'} );
}

this.route('login');
this.route('logout');

Expand Down
4 changes: 4 additions & 0 deletions client/app/routes/projects/new.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Route from '@ember/routing/route';

export default class ProjectsNewRoute extends Route {
}
2 changes: 2 additions & 0 deletions client/app/templates/projects/new.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Create your new project here</h1>
{{outlet}}
11 changes: 11 additions & 0 deletions client/tests/unit/routes/projects/new-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

module('Unit | Route | projects/new', function(hooks) {
setupTest(hooks);

test('it exists', function(assert) {
let route = this.owner.lookup('route:projects/new');
assert.ok(route);
});
});

0 comments on commit 121a3b6

Please sign in to comment.