dashboard-shell-shell 0.0.1000000000001137 → 0.0.1000000000001138
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/components/CruResource.vue +1 -0
- package/components/ExplorerProjectsNamespaces.vue +12 -0
- package/components/PodSecurityAdmission.vue +1 -1
- package/components/ResourceDetail/Masthead.vue +6 -2
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/index.vue +1 -1
- package/components/rancherResourceDetail/Masthead.vue +3 -1
- package/config/table-headers.js +1 -1
- package/package.json +1 -1
- package/rancher-components/Banner/Banner.vue +2 -2
|
@@ -470,6 +470,18 @@ export default {
|
|
|
470
470
|
:resource="MANAGEMENT.PROJECT"
|
|
471
471
|
:main-button-visible="true"
|
|
472
472
|
>
|
|
473
|
+
<template
|
|
474
|
+
v-if="showCreateNsButton"
|
|
475
|
+
#extraActions
|
|
476
|
+
>
|
|
477
|
+
<router-link
|
|
478
|
+
:to="createNamespaceLocationFlatList()"
|
|
479
|
+
class="btn role-primary mr-10"
|
|
480
|
+
data-testid="create_project_namespaces"
|
|
481
|
+
>
|
|
482
|
+
{{ t('projectNamespaces.createNamespace') }}
|
|
483
|
+
</router-link>
|
|
484
|
+
</template>
|
|
473
485
|
<template #group-by="group">
|
|
474
486
|
<div
|
|
475
487
|
class="project-bar"
|
|
@@ -400,7 +400,9 @@ export default {
|
|
|
400
400
|
demoDisplay() {
|
|
401
401
|
const product = this.$store.getters['productId'];
|
|
402
402
|
|
|
403
|
-
const
|
|
403
|
+
const resources = this.location?.params?.resource || ''
|
|
404
|
+
|
|
405
|
+
const productId = this.$store.getters['type-map/groupForBasicType'](this.$store.getters['productId'], resources);
|
|
404
406
|
|
|
405
407
|
if (productId === undefined) {
|
|
406
408
|
return '';
|
|
@@ -420,8 +422,10 @@ export default {
|
|
|
420
422
|
},
|
|
421
423
|
menuIcon() {
|
|
422
424
|
const product = this.$store.getters['productId'];
|
|
425
|
+
|
|
426
|
+
const resources = this.location?.params?.resource || ''
|
|
423
427
|
|
|
424
|
-
return this.$store.getters['type-map/groupsForVirTypes'](product, cloud2harvesterhci(
|
|
428
|
+
return this.$store.getters['type-map/groupsForVirTypes'](product, cloud2harvesterhci(resources));
|
|
425
429
|
},
|
|
426
430
|
|
|
427
431
|
location() {
|
|
@@ -10,7 +10,7 @@ export const NONE = 'none';
|
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
mounted() {
|
|
13
|
-
const table = this.$el.querySelector('TABLE');
|
|
13
|
+
const table = this.$el && this.$el.querySelector('TABLE');
|
|
14
14
|
|
|
15
15
|
this._onRowClickBound = this.onRowClick.bind(this);
|
|
16
16
|
this._onRowMousedownBound = this.onRowMousedown.bind(this);
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
beforeUnmount() {
|
|
25
|
-
const table = this.$el.querySelector('TABLE');
|
|
25
|
+
const table = this.$el && this.$el.querySelector('TABLE');
|
|
26
26
|
|
|
27
27
|
table.removeEventListener('click', this._onRowClickBound);
|
|
28
28
|
table.removeEventListener('mousedown', this._onRowMousedownBound);
|
|
@@ -420,8 +420,10 @@ export default {
|
|
|
420
420
|
},
|
|
421
421
|
menuIcon() {
|
|
422
422
|
const product = this.$store.getters['productId'];
|
|
423
|
+
|
|
424
|
+
const resources = this.location?.params?.resource || ''
|
|
423
425
|
|
|
424
|
-
return this.$store.getters['type-map/groupsForVirTypes'](product, cloud2harvesterhci(
|
|
426
|
+
return this.$store.getters['type-map/groupsForVirTypes'](product, cloud2harvesterhci(resources));
|
|
425
427
|
},
|
|
426
428
|
|
|
427
429
|
location() {
|
package/config/table-headers.js
CHANGED
|
@@ -162,7 +162,7 @@ export const NAMESPACE = {
|
|
|
162
162
|
name: 'namespace',
|
|
163
163
|
labelKey: 'tableHeaders.namespace',
|
|
164
164
|
value: 'namespace',
|
|
165
|
-
getValue: row => row.namespace.replace('harvester', 'cloud'),
|
|
165
|
+
getValue: row => row && row.namespace && row.namespace.replace('harvester', 'cloud'),
|
|
166
166
|
sort: 'namespace',
|
|
167
167
|
dashIfEmpty: true,
|
|
168
168
|
};
|
package/package.json
CHANGED