Skip to content

Commit

Permalink
Show icon to the right of name
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Nov 18, 2022
1 parent 0869a54 commit 439584c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions ui/app/templates/allocations/allocation/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,9 @@
{{#if (eq row.model.provider "nomad")}}
<FlightIcon @name="nomad-color" />
{{else}}
<FlightIcon @name="consul-color" />
{{#if row.model.connect}}
<FlightIcon @name="mesh" @color="#c62a71" />
{{else}}
<FlightIcon @name="consul-color" />
<FlightIcon @name="mesh" @color="#444444" />
{{/if}}
{{/if}}
</td>
Expand Down
9 changes: 4 additions & 5 deletions ui/app/templates/components/job-service-row.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
<FlightIcon @name="nomad-color" />
<LinkTo class="is-primary" @route="jobs.job.services.service" @model={{@service}} @query={{hash level=@service.level}}>{{@service.name}}</LinkTo>
{{else}}
{{#if @service.connect}}
<FlightIcon @name="mesh" @color="#c62a71" />
{{else}}
<FlightIcon @name="consul-color" />
{{/if}}
<FlightIcon @name="consul-color" />
{{#if (and (eq @service.provider "consul") this.consulRedirectLink)}}
<a class="is-primary" href={{this.consulRedirectLink}} target="_blank" rel="noopener noreferrer">
{{@service.name}}
</a>
{{else}}
{{@service.name}}
{{/if}}
{{#if @service.connect}}
<FlightIcon @name="mesh" @color="#444444" />
{{/if}}
{{/if}}
</td>
<td>
Expand Down

0 comments on commit 439584c

Please sign in to comment.