-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
UI: Replace instances of <table> with <HDS::Table> #24257
Conversation
Build Results: |
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.
More HDS 🎉 . Thanks for the updates!
{{#if this.useServiceWorker}} | ||
<dd.Interactive | ||
@href="/v1/sys/storage/raft/snapshot" | ||
@isHrefExternal={{false}} |
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.
I think false is the component default
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.
Disregard. The docs show false
as default and then contradict that by saying "we add the target="_blank" and rel="noopener noreferrer" attributes to it by default".
<PageHeader as |p|> | ||
<p.levelLeft> | ||
<h1 class="title is-3"> | ||
Raft Storage | ||
</h1> | ||
</p.levelLeft> | ||
</PageHeader> | ||
<Toolbar> | ||
<ToolbarActions> | ||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | ||
<D.Trigger | ||
data-test-popup-menu-trigger="true" | ||
class={{concat "toolbar-link" (if D.isOpen " is-active")}} | ||
@htmlTag="button" | ||
> | ||
Snapshots | ||
<Chevron @direction="down" @isButton={{true}} /> | ||
</D.Trigger> | ||
<D.Content @defaultClass="popup-menu-content"> | ||
<nav class="box menu" aria-label="snapshots actions"> | ||
<ul class="menu-list"> | ||
<li class="action"> | ||
{{#if this.useServiceWorker}} | ||
<ExternalLink | ||
@href="/v1/sys/storage/raft/snapshot" | ||
@sameTab={{true}} | ||
onclick={{queue (action "downloadViaServiceWorker") (action D.actions.close)}} | ||
> | ||
Download | ||
</ExternalLink> | ||
{{else}} | ||
<Hds::Button | ||
@text="Download" | ||
class="link" | ||
{{on "click" (queue (action "downloadSnapshot") (action D.actions.close))}} | ||
/> | ||
{{/if}} | ||
</li> | ||
<li class="action"> | ||
<LinkTo @route="vault.cluster.storage-restore"> | ||
Restore | ||
</LinkTo> | ||
</li> | ||
</ul> | ||
</nav> | ||
</D.Content> | ||
</BasicDropdown> | ||
</ToolbarActions> | ||
</Toolbar> |
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.
So much nicer with Hds PageHeader and Dropdown! 🎉
/> | ||
{{else}} | ||
<p class="has-text-grey">URL unavailable</p> |
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.
Nice adding a placeholder!
We only had 3 places where we used the table tag, all of which are shown below with before/after:
Raft Storage
Before:


After:
DR Known Secondaries
Before:


After:
Performance Secondary primary clusters table
Before:


After: