mirror of https://github.com/rancher/dashboard.git
add back deploys on windows tag (#15372)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
This commit is contained in:
parent
a38f37da46
commit
21efb164fe
|
|
@ -11,10 +11,11 @@ import TabTitle from '@shell/components/TabTitle';
|
|||
import { get } from '@shell/utils/object';
|
||||
import { RcItemCard } from '@components/RcItemCard';
|
||||
import AppChartCardSubHeader from '@shell/pages/c/_cluster/apps/charts/AppChartCardSubHeader';
|
||||
import AppChartCardFooter from '@shell/pages/c/_cluster/apps/charts/AppChartCardFooter';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Loading, IconMessage, TabTitle, RcItemCard, AppChartCardSubHeader
|
||||
Loading, IconMessage, TabTitle, RcItemCard, AppChartCardSubHeader, AppChartCardFooter
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
|
|
@ -96,9 +97,14 @@ export default {
|
|||
statuses: chart.cardContent.statuses
|
||||
},
|
||||
subHeaderItems: chart.cardContent.subHeaderItems.slice(0, 1),
|
||||
image: { src: chart.versions[0].icon, alt: { text: this.t('catalog.charts.iconAlt', { app: get(chart, 'chartNameDisplay') }) } },
|
||||
content: { text: chart.chartDescription },
|
||||
rawChart: chart,
|
||||
footerItems: chart.deploysOnWindows ? [{
|
||||
icon: 'icon-tag-alt',
|
||||
iconTooltip: { key: 'generic.tags' },
|
||||
labels: [this.t('catalog.charts.deploysOnWindows')],
|
||||
}] : [],
|
||||
image: { src: chart.versions[0].icon, alt: { text: this.t('catalog.charts.iconAlt', { app: get(chart, 'chartNameDisplay') }) } },
|
||||
content: { text: chart.chartDescription },
|
||||
rawChart: chart,
|
||||
installedApp,
|
||||
};
|
||||
|
||||
|
|
@ -203,6 +209,12 @@ export default {
|
|||
>
|
||||
<AppChartCardSubHeader :items="card.subHeaderItems" />
|
||||
</template>
|
||||
<template
|
||||
v-once
|
||||
#item-card-footer
|
||||
>
|
||||
<AppChartCardFooter :items="card.footerItems" />
|
||||
</template>
|
||||
</rc-item-card>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue