Skip to content

Commit

Permalink
feat(distribution): show tooltip for disabled distrubution types
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanH90 committed Dec 6, 2024
1 parent e814172 commit d16a9d2
Showing 1 changed file with 13 additions and 5 deletions.
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}}
<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

0 comments on commit d16a9d2

Please sign in to comment.