Skip to content

Commit 77eeeb1

Browse files
Merge remote-tracking branch 'remotes/from/ce/main'
2 parents 0660ebc + 38b25c6 commit 77eeeb1

File tree

7 files changed

+8
-38
lines changed

7 files changed

+8
-38
lines changed

ui/lib/ldap/addon/components/page/libraries.hbs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
{{/if}}
1717
</:toolbarFilters>
1818
<:toolbarActions>
19-
{{#if @promptConfig}}
20-
<ToolbarLink @route="configure" data-test-toolbar-action="config">
21-
Configure LDAP
22-
</ToolbarLink>
23-
{{else}}
19+
{{#unless @promptConfig}}
2420
<ToolbarLink @route="libraries.create" @type="add" data-test-toolbar-action="library">
2521
Create library
2622
</ToolbarLink>
27-
{{/if}}
23+
{{/unless}}
2824
</:toolbarActions>
2925
</LdapHeader>
3026

ui/lib/ldap/addon/components/page/overview.hbs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
SPDX-License-Identifier: BUSL-1.1
44
}}
55

6-
<LdapHeader @model={{@backendModel}} @promptConfig={{@promptConfig}} @breadcrumbs={{@breadcrumbs}}>
7-
<:toolbarActions>
8-
{{#if @promptConfig}}
9-
<ToolbarLink @route="configure" data-test-toolbar-action="config">
10-
Configure LDAP
11-
</ToolbarLink>
12-
{{/if}}
13-
</:toolbarActions>
14-
</LdapHeader>
6+
<LdapHeader @model={{@backendModel}} @promptConfig={{@promptConfig}} @breadcrumbs={{@breadcrumbs}} />
157

168
{{#if @promptConfig}}
179
<ConfigCta />

ui/lib/ldap/addon/components/page/roles.hbs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
{{/if}}
1616
</:toolbarFilters>
1717
<:toolbarActions>
18-
{{#if @promptConfig}}
19-
<ToolbarLink @route="configure" data-test-toolbar-action="config">
20-
Configure LDAP
21-
</ToolbarLink>
22-
{{else}}
18+
{{#unless @promptConfig}}
2319
<ToolbarLink @route="roles.create" @type="add" data-test-toolbar-action="role">
2420
Create role
2521
</ToolbarLink>
26-
{{/if}}
22+
{{/unless}}
2723
</:toolbarActions>
2824
</LdapHeader>
2925

ui/tests/acceptance/secrets/backend/ldap/overview-test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ module('Acceptance | ldap | overview', function (hooks) {
6565
await visitURL('overview', this.backend);
6666
await click('[data-test-config-cta] a');
6767
assert.true(isURL('configure', this.backend), 'Transitions to configure route on cta link click');
68-
69-
await click(`[data-test-breadcrumb="${this.backend}"] a`);
70-
await click('[data-test-toolbar-action="config"]');
71-
assert.true(isURL('configure', this.backend), 'Transitions to configure route on toolbar link click');
7268
});
7369

7470
test('it should transition to configuration edit on empty state click', async function (assert) {

ui/tests/integration/components/ldap/page/libraries-test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,13 @@ module('Integration | Component | ldap | Page::Libraries', function (hooks) {
5555
});
5656
});
5757

58-
test('it should render tab page header and config cta', async function (assert) {
58+
test('it should render tab page header', async function (assert) {
5959
this.promptConfig = true;
6060

6161
await this.renderComponent();
6262

6363
assert.dom(GENERAL.icon('folder-users')).hasClass('hds-icon-folder-users', 'LDAP icon renders in title');
6464
assert.dom(GENERAL.hdsPageHeaderTitle).hasText('ldap-test', 'Mount path renders in title');
65-
assert
66-
.dom('[data-test-toolbar-action="config"]')
67-
.hasText('Configure LDAP', 'Correct toolbar action renders');
68-
assert.dom('[data-test-config-cta]').exists('Config cta renders');
6965
});
7066

7167
test('it should render create libraries cta', async function (assert) {

ui/tests/integration/components/ldap/page/overview-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,13 @@ module('Integration | Component | ldap | Page::Overview', function (hooks) {
8181
});
8282
});
8383

84-
test('it should render tab page header and config cta', async function (assert) {
84+
test('it should render tab page header', async function (assert) {
8585
this.promptConfig = true;
8686

8787
await this.renderComponent();
8888

8989
assert.dom(GENERAL.icon('folder-users')).hasClass('hds-icon-folder-users', 'LDAP icon renders in title');
9090
assert.dom(GENERAL.hdsPageHeaderTitle).hasText('ldap-test', 'Mount path renders in title');
91-
assert.dom('[data-test-toolbar-action="config"]').hasText('Configure LDAP', 'Toolbar action renders');
92-
assert.dom('[data-test-config-cta]').exists('Config cta renders');
9391
});
9492

9593
test('it should render overview cards', async function (assert) {

ui/tests/integration/components/ldap/page/roles-test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,13 @@ module('Integration | Component | ldap | Page::Roles', function (hooks) {
5959
};
6060
});
6161

62-
test('it should render tab page header and config cta', async function (assert) {
62+
test('it should render tab page header', async function (assert) {
6363
this.promptConfig = true;
6464

6565
await this.renderComponent();
6666

6767
assert.dom(GENERAL.icon('folder-users')).hasClass('hds-icon-folder-users', 'LDAP icon renders in title');
6868
assert.dom(GENERAL.hdsPageHeaderTitle).hasText('ldap-test', 'Mount path renders in title');
69-
assert
70-
.dom('[data-test-toolbar-action="config"]')
71-
.hasText('Configure LDAP', 'Correct toolbar action renders');
72-
assert.dom('[data-test-config-cta]').exists('Config cta renders');
7369
});
7470

7571
test('it should render create roles cta', async function (assert) {

0 commit comments

Comments
 (0)