mirror of https://github.com/rancher/dashboard.git
Move appReadme vs helm readme, other catalog tweaks
This commit is contained in:
parent
ea20dc0ffb
commit
872e53aa84
|
|
@ -258,12 +258,12 @@ catalog:
|
||||||
install: Install {name}
|
install: Install {name}
|
||||||
installGeneric: Install Chart
|
installGeneric: Install Chart
|
||||||
section:
|
section:
|
||||||
appReadme: Read Me
|
appReadme: README
|
||||||
readme: Helm README
|
readme: Helm README
|
||||||
chartOptions: Chart Options
|
chartOptions: Chart Options
|
||||||
valuesYaml: Values YAML
|
valuesYaml: Values YAML
|
||||||
helm: Helm Options
|
helm: Helm Deploy Options
|
||||||
appReadmeGeneric: This chart doesn't have a Rancher-specific readme. Review the Helm README to learn more about the available configuration options and their usage.
|
appReadmeGeneric: This chart doesn't have a Rancher-specific README. Review the Helm README to learn more about the available configuration options and their usage.
|
||||||
project: Install into Project
|
project: Install into Project
|
||||||
helm:
|
helm:
|
||||||
atomic: Atomic
|
atomic: Atomic
|
||||||
|
|
@ -1754,8 +1754,8 @@ typeLabel:
|
||||||
}
|
}
|
||||||
catalog.cattle.io.clusterrepo: |-
|
catalog.cattle.io.clusterrepo: |-
|
||||||
{count, plural,
|
{count, plural,
|
||||||
one { Repository }
|
one { Chart Repository }
|
||||||
other { Repositories }
|
other { Chart Repositories }
|
||||||
}
|
}
|
||||||
catalog.cattle.io.repo: |-
|
catalog.cattle.io.repo: |-
|
||||||
{count, plural,
|
{count, plural,
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ export default {
|
||||||
nameDisabled: false,
|
nameDisabled: false,
|
||||||
openApi: true,
|
openApi: true,
|
||||||
resetValues: false,
|
resetValues: false,
|
||||||
selectedTabName: 'readme',
|
selectedTabName: 'appReadme',
|
||||||
showPreview: false,
|
showPreview: false,
|
||||||
showDiff: false,
|
showDiff: false,
|
||||||
showValuesComponent: true,
|
showValuesComponent: true,
|
||||||
|
|
@ -766,8 +766,7 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<Markdown v-if="versionInfo && versionInfo.appReadme" v-model="versionInfo.appReadme" class="md md-desc" />
|
<p>
|
||||||
<p v-else-if="chart.description">
|
|
||||||
{{ chart.description }}
|
{{ chart.description }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -835,8 +834,9 @@ export default {
|
||||||
:default-tab="selectedTabName"
|
:default-tab="selectedTabName"
|
||||||
@changed="tabChanged($event)"
|
@changed="tabChanged($event)"
|
||||||
>
|
>
|
||||||
<Tab v-if="showReadme" name="readme" :label="t('catalog.install.section.readme')" :weight="100">
|
<Tab name="appReadme" :label="t('catalog.install.section.appReadme')" :weight="100">
|
||||||
<Markdown v-if="showReadme" ref="readme" v-model="versionInfo.readme" class="md readme" />
|
<Markdown v-if="versionInfo && versionInfo.appReadme" v-model="versionInfo.appReadme" class="md md-desc" />
|
||||||
|
<Markdown v-else :value="t('catalog.install.appReadmeGeneric')" class="md md-desc" />
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<template v-if="valuesComponent && showValuesComponent">
|
<template v-if="valuesComponent && showValuesComponent">
|
||||||
|
|
@ -911,7 +911,11 @@ export default {
|
||||||
/>
|
/>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab name="helm" :label="t('catalog.install.section.helm')" :weight="-1">
|
<Tab v-if="showReadme" name="readme" :label="t('catalog.install.section.readme')" :weight="-1">
|
||||||
|
<Markdown v-if="showReadme" ref="readme" v-model="versionInfo.readme" class="md readme" />
|
||||||
|
</Tab>
|
||||||
|
|
||||||
|
<Tab name="helm" :label="t('catalog.install.section.helm')" :weight="-2">
|
||||||
<div><Checkbox v-if="existing" v-model="cleanupOnFail" :label="t('catalog.install.helm.cleanupOnFail')" /></div>
|
<div><Checkbox v-if="existing" v-model="cleanupOnFail" :label="t('catalog.install.helm.cleanupOnFail')" /></div>
|
||||||
<div><Checkbox v-if="!existing" v-model="crds" :label="t('catalog.install.helm.crds')" /></div>
|
<div><Checkbox v-if="!existing" v-model="crds" :label="t('catalog.install.helm.crds')" /></div>
|
||||||
<div><Checkbox v-model="hooks" :label="t('catalog.install.helm.hooks')" /></div>
|
<div><Checkbox v-model="hooks" :label="t('catalog.install.helm.hooks')" /></div>
|
||||||
|
|
@ -1001,7 +1005,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
$desc-height: 150px;
|
$desc-height: 100px;
|
||||||
$padding: 5px;
|
$padding: 5px;
|
||||||
|
|
||||||
.md {
|
.md {
|
||||||
|
|
@ -1031,7 +1035,7 @@ export default {
|
||||||
|
|
||||||
.logo-container {
|
.logo-container {
|
||||||
height: $desc-height;
|
height: $desc-height;
|
||||||
width: $sideways-tabs-width;
|
width: $desc-height;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1041,7 +1045,6 @@ export default {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: $padding solid white;
|
border: $padding solid white;
|
||||||
border-radius: calc( 3 * var(--border-radius));
|
border-radius: calc( 3 * var(--border-radius));
|
||||||
margin: 0 auto;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,13 @@ import {
|
||||||
FLOW, CONFIGURED_PROVIDERS, CLUSTER_FLOW, CLUSTER_OUTPUT, OUTPUT, NAMESPACE
|
FLOW, CONFIGURED_PROVIDERS, CLUSTER_FLOW, CLUSTER_OUTPUT, OUTPUT, NAMESPACE
|
||||||
} from '@/config/table-headers';
|
} from '@/config/table-headers';
|
||||||
import ChartHeading from '@/components/ChartHeading';
|
import ChartHeading from '@/components/ChartHeading';
|
||||||
|
import TypeDescription from '@/components/TypeDescription';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
middleware: InstallRedirect(NAME, CHART_NAME),
|
middleware: InstallRedirect(NAME, CHART_NAME),
|
||||||
components: { ChartHeading, SortableTable },
|
components: {
|
||||||
|
ChartHeading, SortableTable, TypeDescription
|
||||||
|
},
|
||||||
async fetch() {
|
async fetch() {
|
||||||
const getAllOrDefault = (type) => {
|
const getAllOrDefault = (type) => {
|
||||||
const hasAccess = this.$store.getters[`cluster/schemaFor`](type);
|
const hasAccess = this.$store.getters[`cluster/schemaFor`](type);
|
||||||
|
|
@ -86,6 +89,7 @@ export default {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="logging">
|
<div class="logging">
|
||||||
|
<TypeDescription resource="logging" />
|
||||||
<ChartHeading :label="t('logging.overview.poweredBy')" url="https://github.com/banzaicloud/logging-operator" />
|
<ChartHeading :label="t('logging.overview.poweredBy')" url="https://github.com/banzaicloud/logging-operator" />
|
||||||
<div class="spacer" />
|
<div class="spacer" />
|
||||||
<div v-if="hasClusterFlowAccess">
|
<div v-if="hasClusterFlowAccess">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue