Skip to content
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

feat(distribution): show tooltip for disabled distrubution types #2864

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{{#unless this.showAllServices}}
<div class="uk-margin-bottom uk-button-group" data-test-group-toggle-bar>
{{#each-in this.config.new.types as |slug config|}}
{{#unless config.disabled}}
{{#if config.notAvailableText}}
StephanH90 marked this conversation as resolved.
Show resolved Hide resolved
<UkButton
data-test-type={{slug}}
{{uk-tooltip config.notAvailableText pos="bottom" delay=200}}
@label={{t config.label}}
@color={{if (includes slug @selectedTypes) "primary" "default"}}
@onClick={{fn this.updateSelectedTypes slug}}
disabled
/>
{{/unless}}
{{else}}
{{#unless config.disabled}}
<UkButton
data-test-type={{slug}}
@label={{t config.label}}
@color={{if (includes slug @selectedTypes) "primary" "default"}}
@onClick={{fn this.updateSelectedTypes slug}}
/>
{{/unless}}
{{/if}}
{{/each-in}}
</div>
{{/unless}}
Expand Down
Loading