Merge pull request #252 from hashicorp/hide-change-password-link

Hide change password link in header
This commit is contained in:
Randall Morey authored and GitHub committed 2020-10-01 08:22:16 -04:00
commit 3627f50fff
4 files changed
+12 -5

No files matched your search

+2 -1
View File
@@ -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');
});
});
+2 -2
View File
@@ -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);
});
});