Merge pull request #252 from hashicorp/hide-change-password-link
Hide change password link in header
This commit is contained in:
4 files changed
+12
-5
No files matched your search
@@ -97,6 +97,7 @@ Router.map(function () {
|
||||
});
|
||||
|
||||
this.route('account', function() {
|
||||
this.route('change-password');
|
||||
// Enable after full account feature implementation
|
||||
// this.route('change-password');
|
||||
});
|
||||
});
|
||||
@@ -19,9 +19,9 @@
|
||||
@iconOnly={{true}}
|
||||
@icon="boundary-icons/user-profile" as |dropdown|
|
||||
>
|
||||
<dropdown.link @route="account.change-password">
|
||||
{{!-- <dropdown.link @route="account.change-password">
|
||||
{{t 'actions.change-password'}}
|
||||
</dropdown.link>
|
||||
</dropdown.link> --}}
|
||||
<dropdown.button
|
||||
{{on "click" (route-action "invalidateSession")}}
|
||||
>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Enable after account workflow implementation
|
||||
/*
|
||||
import { module, test } from 'qunit';
|
||||
import { visit, currentURL, click, find, fillIn } from '@ember/test-helpers';
|
||||
import { setupApplicationTest } from 'ember-qunit';
|
||||
@@ -15,6 +17,7 @@ module('Acceptance | accounts | change password', function (hooks) {
|
||||
setupApplicationTest(hooks);
|
||||
setupMirage(hooks);
|
||||
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
global: null,
|
||||
@@ -114,4 +117,6 @@ module('Acceptance | accounts | change password', function (hooks) {
|
||||
await visit(urls.changePassword);
|
||||
assert.notEqual(currentURL(), urls.changePassword);
|
||||
});
|
||||
|
||||
});
|
||||
*/
|
||||
@@ -5,7 +5,8 @@ module('Unit | Route | account/change-password', function(hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function(assert) {
|
||||
let route = this.owner.lookup('route:account/change-password');
|
||||
assert.ok(route);
|
||||
// let route = this.owner.lookup('route:account/change-password');
|
||||
// assert.ok(route);
|
||||
assert.expect(0);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user