Skip to content

Commit 191f868

Browse files
mrsaicharan1niranjan94
authored andcommitted
Moved profile module to settings
1 parent 3a1d5b7 commit 191f868

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed
File renamed without changes.

app/router.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ router.map(function() {
105105
this.route('list', { path: '/:event_state' });
106106
this.route('import');
107107
});
108-
this.route('profile');
109-
110108
this.route('settings', function() {
109+
this.route('profile');
111110
this.route('contact-info');
112111
this.route('password');
113112
this.route('email-preferences');
File renamed without changes.

app/templates/components/nav-bar.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
<a href="{{href-to 'my-sessions'}}" class="item">{{t 'My Sessions'}}</a>
2222
<a href="{{href-to 'events.list' 'live'}}" class="item">{{t 'Manage Events'}}</a>
2323
<div class="divider"></div>
24-
<a href="{{href-to 'profile'}}" class="item">{{t 'Profile'}}</a>
25-
<a href="{{href-to 'settings.contact-info'}}" class="item">{{t 'Settings'}}</a>
24+
<a href="{{href-to 'settings.profile'}}" class="item">{{t 'Settings'}}</a>
2625
{{#if authManager.currentUser.isAnAdmin}}
2726
<a href="{{href-to 'admin'}}" class="item">{{t 'Admin'}}</a>
2827
{{/if}}

app/templates/components/side-bar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="{{href-to 'my-sessions'}}" class="item">{{t 'My Sessions'}}</a>
1313
<a href="{{href-to 'events.list' 'live'}}" class="item">{{t 'Manage Events'}}</a>
1414
<div class="divider"></div>
15-
<a href="{{href-to 'profile'}}" class="item">{{t 'Profile'}}</a>
15+
<a href="{{href-to 'settings.profile'}}" class="item">{{t 'Profile'}}</a>
1616
<a href="{{href-to 'settings.contact-info'}}" class="item">{{t 'Settings'}}</a>
1717
{{#if authManager.currentUser.isAnAdmin}}
1818
<a href="{{href-to 'admin'}}" class="item">{{t 'Admin'}}</a>

app/templates/settings.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<div class="row">
22
<div class="sixteen wide column">
33
{{#tabbed-navigation}}
4+
{{#link-to 'settings.profile' class='item'}}
5+
{{t 'Profile'}}
6+
{{/link-to}}
47
{{#link-to 'settings.contact-info' class='item'}}
58
{{t 'Contact Info'}}
69
{{/link-to}}
File renamed without changes.

tests/acceptance/profile-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { login } from 'open-event-frontend/tests/helpers/custom-helpers';
66
module('Acceptance | profile', function(hooks) {
77
setupApplicationTest(hooks);
88

9-
test('visiting /profile without login', async function(assert) {
10-
await visit('/profile');
9+
test('visiting settings/profile without login', async function(assert) {
10+
await visit('/settings/profile');
1111
assert.equal(currentURL(), '/login');
1212
});
1313

14-
test('visiting /profile with login', async function(assert) {
14+
test('visiting settings/profile with login', async function(assert) {
1515
await login(assert);
16-
await visit('/profile');
17-
assert.equal(currentURL(), '/profile');
16+
await visit('/settings/profile');
17+
assert.equal(currentURL(), '/settings/profile');
1818
});
1919
});

0 commit comments

Comments
 (0)