@rancher/shell 3.0.9-rc.5 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/providers/oci-open-containers.svg +22 -0
- package/assets/images/providers/traefik.png +0 -0
- package/assets/styles/themes/_dark.scss +2 -0
- package/assets/styles/themes/_light.scss +2 -0
- package/assets/styles/themes/_modern.scss +6 -0
- package/assets/translations/en-us.yaml +129 -25
- package/components/CruResource.vue +3 -1
- package/components/ExplorerProjectsNamespaces.vue +12 -12
- package/components/IconOrSvg.vue +61 -42
- package/components/Resource/Detail/Card/StatusCard/__tests__/StatusCard.test.ts +109 -0
- package/components/Resource/Detail/Card/StatusCard/index.vue +21 -4
- package/components/Resource/Detail/Metadata/IdentifyingInformation/__tests__/identifying-fields.test.ts +19 -2
- package/components/Resource/Detail/Metadata/IdentifyingInformation/identifying-fields.ts +19 -11
- package/components/Resource/Detail/ResourcePopover/__tests__/index.test.ts +12 -0
- package/components/Resource/Detail/ResourcePopover/index.vue +2 -0
- package/components/Resource/Detail/ResourceRow.vue +2 -2
- package/components/ResourceList/index.vue +7 -4
- package/components/SortableTable/index.vue +2 -2
- package/components/Window/ContainerLogs.vue +48 -37
- package/components/fleet/FleetClusterTargets/TargetsList.vue +2 -2
- package/components/fleet/FleetClusterTargets/index.vue +6 -1
- package/components/fleet/GitRepoAdvancedTab.vue +333 -0
- package/components/fleet/GitRepoMetadataTab.vue +43 -0
- package/components/fleet/GitRepoRepositoryTab.vue +101 -0
- package/components/fleet/GitRepoTargetTab.vue +77 -0
- package/components/fleet/HelmOpAdvancedTab.vue +247 -0
- package/components/fleet/HelmOpChartTab.vue +158 -0
- package/components/fleet/HelmOpMetadataTab.vue +46 -0
- package/components/fleet/HelmOpTargetTab.vue +84 -0
- package/components/fleet/HelmOpValuesTab.vue +147 -0
- package/components/fleet/__tests__/FleetClusterTargets.test.ts +119 -70
- package/components/form/BannerSettings.vue +2 -2
- package/components/form/NodeScheduling.vue +81 -7
- package/components/form/NotificationSettings.vue +2 -2
- package/components/form/PodAffinity.vue +1 -36
- package/components/form/ResourceLabeledSelect.vue +8 -4
- package/components/form/ResourceQuota/Namespace.vue +30 -9
- package/components/form/ResourceQuota/NamespaceRow.vue +25 -7
- package/components/form/ResourceQuota/Project.vue +140 -82
- package/components/form/ResourceQuota/ResourceQuotaEntry.vue +145 -0
- package/components/form/ResourceQuota/__tests__/Namespace.test.ts +307 -0
- package/components/form/ResourceQuota/__tests__/NamespaceRow.test.ts +281 -0
- package/components/form/ResourceQuota/__tests__/Project.test.ts +274 -27
- package/components/form/ResourceQuota/__tests__/ResourceQuotaEntry.test.ts +215 -0
- package/components/form/SchedulingCustomization.vue +14 -6
- package/components/form/SelectOrCreateAuthSecret.vue +107 -18
- package/components/form/__tests__/NodeScheduling.test.ts +12 -9
- package/components/form/__tests__/PodAffinity.test.ts +21 -2
- package/components/form/__tests__/SchedulingCustomization.test.ts +240 -0
- package/components/formatter/ClusterLink.vue +8 -0
- package/components/formatter/SecretOrigin.vue +79 -0
- package/config/labels-annotations.js +7 -6
- package/config/pagination-table-headers.js +6 -4
- package/config/product/explorer.js +1 -11
- package/config/product/manager.js +0 -1
- package/config/query-params.js +3 -0
- package/config/settings.ts +15 -2
- package/config/table-headers.js +21 -17
- package/config/types.js +23 -8
- package/detail/fleet.cattle.io.cluster.vue +1 -1
- package/detail/workload/index.vue +11 -16
- package/dialog/DeactivateDriverDialog.vue +1 -1
- package/dialog/FeatureFlagListDialog.vue +1 -1
- package/dialog/Ipv6NetworkingDialog.vue +156 -0
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +1 -1
- package/edit/__tests__/fleet.cattle.io.helmop.test.ts +1 -0
- package/edit/__tests__/management.cattle.io.project.test.js +56 -128
- package/edit/auth/oidc.vue +1 -1
- package/edit/catalog.cattle.io.clusterrepo.vue +155 -25
- package/edit/fleet.cattle.io.gitrepo.vue +153 -283
- package/edit/fleet.cattle.io.helmop.vue +190 -332
- package/edit/management.cattle.io.project.vue +5 -42
- package/edit/management.cattle.io.setting.vue +6 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/__tests__/auth.spec.ts +145 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/__tests__/index.test.ts +202 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/__tests__/tls.spec.ts +226 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +24 -21
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/__tests__/opsgenie.spec.ts +157 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/__tests__/pagerduty.spec.ts +132 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/__tests__/slack.spec.ts +108 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +2 -1
- package/edit/monitoring.coreos.com.receiver/__tests__/auth.spec.ts +165 -0
- package/edit/monitoring.coreos.com.receiver/__tests__/index.test.ts +153 -0
- package/edit/monitoring.coreos.com.receiver/__tests__/tls.spec.ts +115 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/email.spec.ts +86 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/opsgenie.spec.ts +209 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/pagerduty.spec.ts +105 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/slack.spec.ts +92 -0
- package/edit/monitoring.coreos.com.receiver/types/__tests__/webhook.spec.ts +131 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +55 -24
- package/edit/provisioning.cattle.io.cluster/__tests__/Networking.test.ts +1 -103
- package/edit/provisioning.cattle.io.cluster/__tests__/index.test.ts +13 -1
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2-fleet-cluster-agent.test.ts +283 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +65 -49
- package/edit/provisioning.cattle.io.cluster/ingress/IngressCards.vue +114 -0
- package/edit/provisioning.cattle.io.cluster/ingress/IngressConfiguration.vue +158 -0
- package/edit/provisioning.cattle.io.cluster/rke2.vue +167 -69
- package/edit/provisioning.cattle.io.cluster/shared.ts +36 -1
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +2 -1
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +70 -7
- package/edit/provisioning.cattle.io.cluster/tabs/Ingress.vue +343 -0
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +2 -1
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/__tests__/S3Config.test.ts +13 -1
- package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +10 -44
- package/edit/secret/index.vue +1 -1
- package/edit/token.vue +68 -29
- package/edit/workload/__tests__/index.test.ts +2 -37
- package/edit/workload/index.vue +6 -2
- package/edit/workload/mixins/workload.js +0 -32
- package/list/__tests__/management.cattle.io.setting.test.ts +198 -0
- package/list/management.cattle.io.setting.vue +13 -0
- package/list/provisioning.cattle.io.cluster.vue +50 -1
- package/list/secret.vue +4 -9
- package/list/service.vue +6 -8
- package/machine-config/amazonec2.vue +11 -4
- package/machine-config/components/EC2Networking.vue +46 -30
- package/machine-config/components/__tests__/EC2Networking.test.ts +7 -7
- package/machine-config/components/__tests__/utils/vpcSubnetMockData.js +0 -9
- package/machine-config/digitalocean.vue +3 -3
- package/models/__tests__/chart.test.ts +2 -2
- package/models/__tests__/namespace.test.ts +11 -0
- package/models/__tests__/provisioning.cattle.io.cluster.test.ts +96 -0
- package/models/__tests__/workload.test.ts +42 -1
- package/models/catalog.cattle.io.clusterrepo.js +30 -4
- package/models/chart.js +3 -3
- package/models/ext.cattle.io.token.js +48 -0
- package/models/kontainerdriver.js +2 -2
- package/models/namespace.js +7 -1
- package/models/nodedriver.js +2 -2
- package/models/provisioning.cattle.io.cluster.js +28 -7
- package/models/secret.js +0 -17
- package/models/service.js +44 -1
- package/models/token.js +4 -0
- package/models/workload.js +12 -6
- package/package.json +1 -1
- package/pages/account/index.vue +96 -67
- package/pages/auth/setup.vue +5 -14
- package/pages/c/_cluster/apps/charts/AppChartCardFooter.vue +45 -18
- package/pages/c/_cluster/apps/charts/__tests__/install.test.ts +4 -1
- package/pages/c/_cluster/apps/charts/index.vue +82 -3
- package/pages/c/_cluster/apps/charts/install.vue +317 -42
- package/pages/c/_cluster/explorer/tools/index.vue +1 -1
- package/pages/c/_cluster/manager/cloudCredential/index.vue +1 -1
- package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +5 -4
- package/pages/c/_cluster/settings/index.vue +3 -1
- package/pages/c/_cluster/uiplugins/index.vue +1 -1
- package/plugins/dashboard-store/__tests__/getters.test.ts +108 -0
- package/plugins/dashboard-store/__tests__/resource-class.test.ts +27 -0
- package/plugins/dashboard-store/actions.js +3 -8
- package/plugins/dashboard-store/getters.js +7 -5
- package/plugins/dashboard-store/mutations.js +4 -1
- package/plugins/dashboard-store/resource-class.js +3 -3
- package/plugins/steve/__tests__/steve-class.test.ts +102 -141
- package/plugins/steve/steve-class.js +12 -3
- package/plugins/steve/steve-pagination-utils.ts +6 -2
- package/rancher-components/RcIcon/types.ts +2 -0
- package/rancher-components/RcItemCard/RcItemCard.vue +72 -20
- package/store/prefs.js +3 -0
- package/types/aws-sdk.d.ts +121 -0
- package/types/resources/node.ts +15 -0
- package/types/shell/index.d.ts +537 -506
- package/types/store/pagination.types.ts +5 -5
- package/utils/__tests__/array.test.ts +1 -29
- package/utils/__tests__/cluster-agent-configuration.test.ts +203 -0
- package/utils/array.ts +0 -11
- package/utils/aws.ts +21 -0
- package/utils/cluster.js +22 -2
- package/utils/selector-typed.ts +1 -1
- package/utils/svg-filter.js +4 -3
- package/components/__tests__/ProjectRow.test.ts +0 -206
- package/components/form/ResourceQuota/ProjectRow.vue +0 -277
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { RcItemCardAction } from '@components/RcItemCard';
|
|
3
3
|
import { RcButton } from '@components/RcButton';
|
|
4
|
+
import { RcIcon } from '@components/RcIcon';
|
|
4
5
|
|
|
5
6
|
interface FooterItem {
|
|
6
7
|
icon?: string;
|
|
@@ -31,13 +32,19 @@ function onClickItem(type: string, label: string) {
|
|
|
31
32
|
class="app-chart-card-footer-item"
|
|
32
33
|
data-testid="app-chart-card-footer-item"
|
|
33
34
|
>
|
|
35
|
+
<RcIcon
|
|
36
|
+
v-if="footerItem.icon"
|
|
37
|
+
v-clean-tooltip="footerItem.iconTooltip?.key ? t(footerItem.iconTooltip?.key) : undefined"
|
|
38
|
+
class="app-chart-card-footer-item-icon"
|
|
39
|
+
:type="footerItem.icon"
|
|
40
|
+
/>
|
|
34
41
|
<template
|
|
35
42
|
v-for="(label, j) in footerItem.labels"
|
|
36
43
|
:key="j"
|
|
37
44
|
>
|
|
38
45
|
<rc-item-card-action
|
|
39
46
|
v-if="clickable && footerItem.type"
|
|
40
|
-
class="app-chart-card-footer-item-
|
|
47
|
+
class="app-chart-card-footer-item-action"
|
|
41
48
|
>
|
|
42
49
|
<rc-button
|
|
43
50
|
v-clean-tooltip="footerItem.labelTooltip"
|
|
@@ -47,18 +54,12 @@ function onClickItem(type: string, label: string) {
|
|
|
47
54
|
:aria-label="t('catalog.charts.appChartCard.footerItem.ariaLabel', { filter: label })"
|
|
48
55
|
@click="onClickItem(footerItem.type, label)"
|
|
49
56
|
>
|
|
50
|
-
<
|
|
51
|
-
v-if="footerItem.icon"
|
|
52
|
-
#before
|
|
53
|
-
>
|
|
54
|
-
<i
|
|
55
|
-
v-clean-tooltip="t(footerItem.iconTooltip?.key)"
|
|
56
|
-
:class="['icon', 'app-chart-card-footer-item-icon', footerItem.icon]"
|
|
57
|
-
/>
|
|
58
|
-
</template>
|
|
59
|
-
{{ label }}
|
|
60
|
-
<span v-if="footerItem.labels.length > 1 && j !== footerItem.labels.length - 1">, </span>
|
|
57
|
+
<span class="app-chart-card-footer-button-label">{{ label }}</span>
|
|
61
58
|
</rc-button>
|
|
59
|
+
<span
|
|
60
|
+
v-if="footerItem.labels.length > 1 && j !== footerItem.labels.length - 1"
|
|
61
|
+
class="app-chart-card-footer-item-separator"
|
|
62
|
+
>,</span>
|
|
62
63
|
</rc-item-card-action>
|
|
63
64
|
<span
|
|
64
65
|
v-else
|
|
@@ -67,7 +68,10 @@ function onClickItem(type: string, label: string) {
|
|
|
67
68
|
data-testid="app-chart-card-footer-item-text"
|
|
68
69
|
>
|
|
69
70
|
{{ label }}
|
|
70
|
-
<span
|
|
71
|
+
<span
|
|
72
|
+
v-if="footerItem.labels.length > 1 && j !== footerItem.labels.length - 1"
|
|
73
|
+
class="app-chart-card-footer-item-separator"
|
|
74
|
+
>,</span>
|
|
71
75
|
</span>
|
|
72
76
|
</template>
|
|
73
77
|
</div>
|
|
@@ -78,6 +82,7 @@ function onClickItem(type: string, label: string) {
|
|
|
78
82
|
.app-chart-card-footer {
|
|
79
83
|
display: flex;
|
|
80
84
|
flex-wrap: wrap;
|
|
85
|
+
max-width: 100%;
|
|
81
86
|
|
|
82
87
|
&-item {
|
|
83
88
|
display: flex;
|
|
@@ -85,18 +90,31 @@ function onClickItem(type: string, label: string) {
|
|
|
85
90
|
color: var(--link-text-secondary);
|
|
86
91
|
margin-top: 8px;
|
|
87
92
|
margin-right: 8px;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
max-width: 100%;
|
|
95
|
+
|
|
96
|
+
&-action {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
min-width: 0; // Critical for truncation in flex containers
|
|
100
|
+
max-width: 100%;
|
|
101
|
+
}
|
|
88
102
|
|
|
89
103
|
&-text {
|
|
90
|
-
|
|
91
|
-
display: -webkit-box;
|
|
92
|
-
-webkit-line-clamp: 1;
|
|
93
|
-
-webkit-box-orient: vertical;
|
|
104
|
+
display: block;
|
|
94
105
|
overflow: hidden;
|
|
95
106
|
text-overflow: ellipsis;
|
|
96
|
-
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-separator {
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
margin-right: 4px;
|
|
97
114
|
}
|
|
98
115
|
|
|
99
116
|
&-icon {
|
|
117
|
+
flex-shrink: 0;
|
|
100
118
|
width: 20px;
|
|
101
119
|
height: 20px;
|
|
102
120
|
display: flex;
|
|
@@ -109,6 +127,15 @@ function onClickItem(type: string, label: string) {
|
|
|
109
127
|
|
|
110
128
|
&-button {
|
|
111
129
|
text-transform: capitalize;
|
|
130
|
+
min-width: 0;
|
|
131
|
+
max-width: 100%;
|
|
132
|
+
|
|
133
|
+
&-label {
|
|
134
|
+
display: block;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
112
139
|
}
|
|
113
140
|
}
|
|
114
141
|
|
|
@@ -15,6 +15,7 @@ describe('page: Install', () => {
|
|
|
15
15
|
}),
|
|
16
16
|
getters: {
|
|
17
17
|
'catalog/inStore': 'cluster',
|
|
18
|
+
'catalog/repo': () => ({ metadata: { name: 'test-repo' } }),
|
|
18
19
|
'features/get': () => false,
|
|
19
20
|
defaultNamespace: 'default',
|
|
20
21
|
'i18n/withFallback': (key: string) => key,
|
|
@@ -69,7 +70,9 @@ describe('page: Install', () => {
|
|
|
69
70
|
targetName: 'wrong-name',
|
|
70
71
|
versions: []
|
|
71
72
|
},
|
|
72
|
-
query:
|
|
73
|
+
query: { versionName: '1.0.0' },
|
|
74
|
+
chartValues: { global: { imagePullSecrets: [] } },
|
|
75
|
+
repo: { spec: { clientSecret: { name: 'test-secret' } } }
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
78
|
});
|
|
@@ -12,12 +12,13 @@ import { lcFirst } from '@shell/utils/string';
|
|
|
12
12
|
import { sortBy } from '@shell/utils/sort';
|
|
13
13
|
import debounce from 'lodash/debounce';
|
|
14
14
|
import { mapGetters } from 'vuex';
|
|
15
|
-
import { SHOW_PRE_RELEASE } from '@shell/store/prefs';
|
|
15
|
+
import { SHOW_PRE_RELEASE, HIDE_SUSE_APP_COLLECTION_REPO_BANNER } from '@shell/store/prefs';
|
|
16
16
|
import { CATALOG } from '@shell/config/labels-annotations';
|
|
17
|
+
import { CATALOG as CATALOG_TYPES, CATALOG_SORT_OPTIONS, CLUSTER_REPO_TYPES } from '@shell/config/types';
|
|
18
|
+
|
|
17
19
|
import { isUIPlugin } from '@shell/config/uiplugins';
|
|
18
20
|
import { RcItemCard } from '@components/RcItemCard';
|
|
19
21
|
import { get } from '@shell/utils/object';
|
|
20
|
-
import { CATALOG as CATALOG_TYPES, CATALOG_SORT_OPTIONS } from '@shell/config/types';
|
|
21
22
|
import FilterPanel from '@shell/components/FilterPanel';
|
|
22
23
|
import AppChartCardSubHeader from '@shell/pages/c/_cluster/apps/charts/AppChartCardSubHeader';
|
|
23
24
|
import AppChartCardFooter from '@shell/pages/c/_cluster/apps/charts/AppChartCardFooter';
|
|
@@ -26,6 +27,7 @@ import StatusLabel from '@shell/pages/c/_cluster/apps/charts/StatusLabel';
|
|
|
26
27
|
import RichTranslation from '@shell/components/RichTranslation.vue';
|
|
27
28
|
import { getLatestCompatibleVersion } from '@shell/utils/chart';
|
|
28
29
|
import Select from '@shell/components/form/Select';
|
|
30
|
+
import { getVersionData } from '@shell/config/version';
|
|
29
31
|
|
|
30
32
|
const createInitialFilters = () => ({
|
|
31
33
|
repos: [],
|
|
@@ -63,6 +65,12 @@ export default {
|
|
|
63
65
|
this.filters.tags = normalizeFilterQuery(query[TAG]) || [];
|
|
64
66
|
|
|
65
67
|
this.installedApps = await this.$store.dispatch('cluster/findAll', { type: CATALOG_TYPES.APP });
|
|
68
|
+
|
|
69
|
+
// Check if user has permission to create repositories
|
|
70
|
+
// This is used to show the banner to create repo if you don't have SUSE App Collection
|
|
71
|
+
const clusterCreateClusterRepo = await this.$store.dispatch('cluster/create', { type: CATALOG_TYPES.CLUSTER_REPO });
|
|
72
|
+
|
|
73
|
+
this.canCreateRepos = clusterCreateClusterRepo.canCreate;
|
|
66
74
|
},
|
|
67
75
|
|
|
68
76
|
updated() {
|
|
@@ -130,7 +138,13 @@ export default {
|
|
|
130
138
|
],
|
|
131
139
|
initialVisibleChartsCount: 30,
|
|
132
140
|
visibleChartsCount: 20,
|
|
133
|
-
hasOverflow: false
|
|
141
|
+
hasOverflow: false,
|
|
142
|
+
getVersionData,
|
|
143
|
+
CLUSTER_REPO_TYPES,
|
|
144
|
+
CATALOG_TYPES,
|
|
145
|
+
canCreateRepos: false,
|
|
146
|
+
showAppCollectionBanner: true,
|
|
147
|
+
isPrime: getVersionData().RancherPrime === 'true',
|
|
134
148
|
};
|
|
135
149
|
},
|
|
136
150
|
|
|
@@ -138,6 +152,22 @@ export default {
|
|
|
138
152
|
...mapGetters(['currentCluster']),
|
|
139
153
|
...mapGetters({ allCharts: 'catalog/charts', loadingErrors: 'catalog/errors' }),
|
|
140
154
|
|
|
155
|
+
hideBannerPref() {
|
|
156
|
+
return this.$store.getters['prefs/get'](HIDE_SUSE_APP_COLLECTION_REPO_BANNER);
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
showAppCollectionBannerLogic() {
|
|
160
|
+
return !this.hasSuseAppCollectionRepo && this.canCreateRepos && this.showAppCollectionBanner && !this.hideBannerPref & this.isPrime;
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
hasSuseAppCollectionRepo() {
|
|
164
|
+
return this.suseAppCollectionRepo.length > 0;
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
showErrorBanner() {
|
|
168
|
+
return this.loadingErrors && this.loadingErrors.length > 0;
|
|
169
|
+
},
|
|
170
|
+
|
|
141
171
|
repoOptions() {
|
|
142
172
|
let out = this.$store.getters['catalog/repos'].map((r) => {
|
|
143
173
|
return {
|
|
@@ -160,6 +190,13 @@ export default {
|
|
|
160
190
|
return out;
|
|
161
191
|
},
|
|
162
192
|
|
|
193
|
+
suseAppCollectionRepo() {
|
|
194
|
+
const suseRepos = this.$store.getters['catalog/repos'].filter((r) => r.isSuseAppCollection);
|
|
195
|
+
const out = suseRepos.map((r) => r.metadata.name);
|
|
196
|
+
|
|
197
|
+
return out;
|
|
198
|
+
},
|
|
199
|
+
|
|
163
200
|
tagOptions() {
|
|
164
201
|
const outSet = new Set();
|
|
165
202
|
|
|
@@ -514,6 +551,11 @@ export default {
|
|
|
514
551
|
this.observer.observe(sentinel);
|
|
515
552
|
this.observerInitialized = true;
|
|
516
553
|
}
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
async closeSuseAppCollectionBanner() {
|
|
557
|
+
this.showAppCollectionBanner = false;
|
|
558
|
+
await this.$store.dispatch('prefs/set', { key: HIDE_SUSE_APP_COLLECTION_REPO_BANNER, value: true });
|
|
517
559
|
}
|
|
518
560
|
},
|
|
519
561
|
};
|
|
@@ -569,6 +611,35 @@ export default {
|
|
|
569
611
|
:key="i"
|
|
570
612
|
color="error"
|
|
571
613
|
:label="err"
|
|
614
|
+
class="banner-mb-15px"
|
|
615
|
+
/>
|
|
616
|
+
<Banner
|
|
617
|
+
v-if="showAppCollectionBannerLogic"
|
|
618
|
+
:key="i"
|
|
619
|
+
color="info"
|
|
620
|
+
closable
|
|
621
|
+
class="banner-mb-15px"
|
|
622
|
+
@close="closeSuseAppCollectionBanner"
|
|
623
|
+
>
|
|
624
|
+
<RichTranslation
|
|
625
|
+
k="catalog.charts.appCollectionRepoMissing"
|
|
626
|
+
tag="div"
|
|
627
|
+
:raw="true"
|
|
628
|
+
>
|
|
629
|
+
<template #repoCreate="{ content }">
|
|
630
|
+
<router-link
|
|
631
|
+
:to="{ name: 'c-cluster-product-resource-create', params: { resource: CATALOG_TYPES.CLUSTER_REPO, cluster: $route.params.cluster, product: $store.getters['productId'] }, query: { target: CLUSTER_REPO_TYPES.SUSE_APP_COLLECTION } }"
|
|
632
|
+
class="secondary-text-link"
|
|
633
|
+
tabindex="0"
|
|
634
|
+
>
|
|
635
|
+
{{ content }}
|
|
636
|
+
</router-link>
|
|
637
|
+
</template>
|
|
638
|
+
</RichTranslation>
|
|
639
|
+
</Banner>
|
|
640
|
+
<div
|
|
641
|
+
v-if="showAppCollectionBannerLogic || showErrorBanner"
|
|
642
|
+
class="banner-spacer"
|
|
572
643
|
/>
|
|
573
644
|
|
|
574
645
|
<div class="wrapper">
|
|
@@ -847,4 +918,12 @@ export default {
|
|
|
847
918
|
}
|
|
848
919
|
}
|
|
849
920
|
|
|
921
|
+
.banner-mb-15px {
|
|
922
|
+
margin: 0 0 15px 0;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.banner-spacer {
|
|
926
|
+
height: 9px;
|
|
927
|
+
}
|
|
928
|
+
|
|
850
929
|
</style>
|