Skip to content

Commit

Permalink
Fix history item states help display to apply same styling attributes
Browse files Browse the repository at this point in the history
and resolution as the history does.  This fixes new/queued display
colors.

That said, we should formalize this so we aren't relying on a mix of
data-state css rules and alert-<status> bindings.
  • Loading branch information
dannon committed Aug 1, 2023
1 parent 75cc87c commit 73a0edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/History/Content/model/StatesInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ function onFilter(value: string) {
<p>Here are all available item states in Galaxy:</p>
<p><i>(Note that the colors for each state correspond to content item state colors in the history)</i></p>
<dl v-for="(state, key, index) in states" :key="index">
<b-alert :variant="state.status || 'success'" show>
<div :class="['alert', 'content-item', 'alert-' + state.status]" :data-state="key">
<dt>
<a class="text-decoration-none" href="javascript:void(0)" @click="onFilter(key)"
><code>{{ key }}</code></a
>
<icon v-if="state.icon" :icon="state.icon" />
</dt>
<dd>{{ helpText[key] || state.text }}</dd>
</b-alert>
</div>
</dl>
</b-modal>
</template>

0 comments on commit 73a0edd

Please sign in to comment.