-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Ui/small replication action fixes #9387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
46bbd8e
787a40d
7712215
b58b5c3
ca90536
ae0d2af
ba13043
5797ec8
7c0a691
e0f0546
12679a3
d201b52
3e6e998
bd9d44f
5906c8b
2df958e
76bf47f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ | |
| {{/if}} | ||
| <PageHeader as |p|> | ||
| <p.top> | ||
| {{#if (not isSummaryDashboard) }} | ||
| {{#if (not (or isSummaryDashboard isSecondary)) }} | ||
| {{#key-value-header | ||
| baseKey=baseKey | ||
| path="vault.cluster.replication-dr-promote" | ||
|
|
@@ -25,8 +25,8 @@ | |
| <span class="sep"> | ||
| / | ||
| </span> | ||
| {{#link-to "vault.cluster.replication-dr-promote"}} | ||
| Disaster Recovery | ||
| {{#link-to "vault.cluster.replication.index"}} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only time a breadcrumb shows on the route |
||
| Replication | ||
| {{/link-to}} | ||
| </li> | ||
| {{/key-value-header}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from 'core/components/shamir-flow'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from 'core/components/shamir-modal-flow'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| <section class="section"> | ||
| <div class="container is-widescreen"> | ||
| {{#if model.replicationIsInitializing }} | ||
| <nav class="navbar"></nav> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice fix! ✨ |
||
| <LayoutLoading /> | ||
| {{else}} | ||
| {{#if (eq model.mode 'unsupported')}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,62 @@ | ||
| <section class="section"> | ||
| <div class="container is-widescreen"> | ||
| {{#if model.replicationAttrs.replicationEnabled}} | ||
| <PageHeader as |p|> | ||
| <p.top> | ||
| <nav class="key-value-header breadcrumb"> | ||
| {{#if (and (eq model.drMode "secondary") (eq model.drModeInit "primary"))}} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rest of this is indentation changes due to wrapping everything in conditional |
||
| <nav class="navbar"></nav> | ||
|
Monkeychip marked this conversation as resolved.
|
||
| <LayoutLoading /> | ||
| {{else}} | ||
| {{#if model.replicationAttrs.replicationEnabled}} | ||
| <PageHeader as |p|> | ||
| <p.top> | ||
| <nav class="key-value-header breadcrumb"> | ||
| <ul> | ||
| <li> | ||
| {{#link-to "index"}} | ||
| <span class="sep" data-test-replication-breadcrumb /> | ||
| Replication | ||
| {{/link-to}} | ||
| </li> | ||
| <li> | ||
| <span class="sep"></span> | ||
| {{model.replicationModeForDisplay}} | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </p.top> | ||
| <p.levelLeft> | ||
| <h1 class="has-top-margin-m title is-3 " data-test-replication-title=true> | ||
| {{model.replicationModeForDisplay}} | ||
| <span class="tag is-light has-text-grey-dark" data-test-replication-mode-display=true> | ||
| {{model.replicationAttrs.modeForHeader}} | ||
| </span> | ||
| </h1> | ||
| </p.levelLeft> | ||
| </PageHeader> | ||
| <div class="tabs-container box is-bottomless is-fullwidth is-paddingless is-marginless"> | ||
| <nav class="tabs sub-nav"> | ||
| <ul> | ||
| <li> | ||
| {{#link-to "index"}} | ||
| <span class="sep" data-test-replication-breadcrumb /> | ||
| Replication | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.index') 'is-active' ''}}"> | ||
| {{#link-to "mode" replicationMode data-test-replication-link="details"}} | ||
| Details | ||
| {{/link-to}} | ||
| </li> | ||
| <li> | ||
| <span class="sep"></span> | ||
| {{model.replicationModeForDisplay}} | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.manage') 'is-active' ''}}"> | ||
| {{#link-to "mode.manage" replicationMode data-test-replication-link="manage"}} | ||
| Manage | ||
| {{/link-to}} | ||
| </li> | ||
| {{#if model.replicationAttrs.isPrimary}} | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.secondaries') 'is-active' ''}}"> | ||
| {{#link-to "mode.secondaries" replicationMode data-test-replication-link="secondaries"}} | ||
| Secondaries | ||
| {{/link-to}} | ||
| </li> | ||
| {{/if}} | ||
| </ul> | ||
| </nav> | ||
| </p.top> | ||
| <p.levelLeft> | ||
| <h1 class="has-top-margin-m title is-3 " data-test-replication-title=true> | ||
| {{model.replicationModeForDisplay}} | ||
| <span class="tag is-light has-text-grey-dark" data-test-replication-mode-display=true> | ||
| {{model.replicationAttrs.modeForHeader}} | ||
| </span> | ||
| </h1> | ||
| </p.levelLeft> | ||
| </PageHeader> | ||
| <div class="tabs-container box is-bottomless is-fullwidth is-paddingless is-marginless"> | ||
| <nav class="tabs sub-nav"> | ||
| <ul> | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.index') 'is-active' ''}}"> | ||
| {{#link-to "mode" replicationMode data-test-replication-link="details"}} | ||
| Details | ||
| {{/link-to}} | ||
| </li> | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.manage') 'is-active' ''}}"> | ||
| {{#link-to "mode.manage" replicationMode data-test-replication-link="manage"}} | ||
| Manage | ||
| {{/link-to}} | ||
| </li> | ||
| {{#if model.replicationAttrs.isPrimary}} | ||
| <li class="{{if (is-active-route 'vault.cluster.replication.mode.secondaries') 'is-active' ''}}"> | ||
| {{#link-to "mode.secondaries" replicationMode data-test-replication-link="secondaries"}} | ||
| Secondaries | ||
| {{/link-to}} | ||
| </li> | ||
| {{/if}} | ||
| </ul> | ||
| </nav> | ||
| </div> | ||
| </div> | ||
| {{/if}} | ||
| {{outlet}} | ||
| {{/if}} | ||
| {{outlet}} | ||
| </div> | ||
| </section> | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If is drSecondary then don't show breadcrumb, there is a conditional higher up that is making sure this is DR.