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.
@@ -895,6 +895,7 @@ form.create-resource-container .cru {
895
895
  display: flex;
896
896
  flex-direction: column;
897
897
  flex-grow: 1;
898
+ height: 100%;
898
899
  }
899
900
 
900
901
  &__content {
@@ -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"
@@ -218,7 +218,7 @@ export default defineComponent({
218
218
  :key="i"
219
219
  class="row row--y-center mb-20"
220
220
  >
221
- <span class="col span-2">
221
+ <span class="col">
222
222
  <Checkbox
223
223
  v-if="!labelsAlwaysActive"
224
224
  v-model:value="psaControl.active"
@@ -400,7 +400,9 @@ export default {
400
400
  demoDisplay() {
401
401
  const product = this.$store.getters['productId'];
402
402
 
403
- const productId = this.$store.getters['type-map/groupForBasicType'](this.$store.getters['productId'], this.location.params.resource);
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(this.location.params.resource));
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);
@@ -499,7 +499,7 @@ margin: 0px -20px;
499
499
  // }
500
500
  & .tab {
501
501
  /* width: 100%; */
502
- width: 120px;
502
+ min-width: 120px;
503
503
  height: 36px;
504
504
  /* border-top: solid 5px transparent; */
505
505
  display: flex;
@@ -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(this.location.params.resource));
426
+ return this.$store.getters['type-map/groupsForVirTypes'](product, cloud2harvesterhci(resources));
425
427
  },
426
428
 
427
429
  location() {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashboard-shell-shell",
3
- "version": "0.0.1000000000001137",
3
+ "version": "0.0.1000000000001138",
4
4
  "description": "Rancher Dashboard Shell",
5
5
  "repository": "https://github.com/rancherlabs/dashboard",
6
6
  "license": "Apache-2.0",
@@ -196,8 +196,8 @@ $icon-size: 24px;
196
196
  }
197
197
 
198
198
  .info & {
199
- /* background: var(--info-banner-bg); */
200
- background: #f2f2f2;
199
+ background: var(--info-banner-bg);
200
+ // background: #f2f2f2;
201
201
  border-color: var(--info);
202
202
  }
203
203