dashboard-shell-shell 1.0.1000000117 → 1.0.1000000119
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.
|
@@ -388,17 +388,6 @@ export default {
|
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
rows = rows.map((item) => {
|
|
392
|
-
if (item.key && item.key.includes('harvester')) {
|
|
393
|
-
item.key = item.key.replace('harvester', 'cloud');
|
|
394
|
-
}
|
|
395
|
-
if (item.key && item.value.includes('harvester')) {
|
|
396
|
-
item.value = item.value.replace('harvester', 'cloud');
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
return item;
|
|
400
|
-
});
|
|
401
|
-
|
|
402
391
|
return rows;
|
|
403
392
|
},
|
|
404
393
|
|
|
@@ -409,8 +398,6 @@ export default {
|
|
|
409
398
|
[this.valueName]: value,
|
|
410
399
|
};
|
|
411
400
|
|
|
412
|
-
obj.key = obj.key?.replace('harvester', 'cloud');
|
|
413
|
-
obj.value = obj.value?.replace('harvester', 'cloud');
|
|
414
401
|
obj.binary = false;
|
|
415
402
|
obj.canEncode = this.handleBase64;
|
|
416
403
|
obj.supported = true;
|
|
@@ -492,8 +479,8 @@ export default {
|
|
|
492
479
|
// let value = (row[valueName] || '');
|
|
493
480
|
// const key = (row[keyName] || '').trim();
|
|
494
481
|
|
|
495
|
-
const key = (row[keyName]
|
|
496
|
-
let value = (row[valueName]
|
|
482
|
+
const key = (row[keyName] || '').trim();
|
|
483
|
+
let value = (row[valueName] || '').trim();
|
|
497
484
|
|
|
498
485
|
if (value && typeOf(value) === 'object') {
|
|
499
486
|
out[key] = JSON.parse(JSON.stringify(value));
|
|
@@ -289,7 +289,7 @@ export default {
|
|
|
289
289
|
:data-testid="`input-match-type-field-${index}`"
|
|
290
290
|
>
|
|
291
291
|
<div v-if="isView">
|
|
292
|
-
{{ row.matching
|
|
292
|
+
{{ row.matching }}
|
|
293
293
|
<!-- {{ row.matching }} -->
|
|
294
294
|
</div>
|
|
295
295
|
<LabeledSelect
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
305
305
|
:data-testid="`input-match-expression-key-${index}`"
|
|
306
306
|
>
|
|
307
307
|
<div v-if="isView" class="view-item-value">
|
|
308
|
-
{{ row.key
|
|
308
|
+
{{ row.key }}
|
|
309
309
|
</div>
|
|
310
310
|
<input
|
|
311
311
|
v-else-if="!hasKeySelectOptions"
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
252
252
|
const options = namespaces
|
|
253
253
|
.map((namespace) => ({ nameDisplay: namespace, id: namespace }))
|
|
254
254
|
.map(props.namespaceMapper || ((obj) => ({
|
|
255
|
-
label: obj.nameDisplay
|
|
255
|
+
label: obj.nameDisplay,
|
|
256
256
|
value: obj.id,
|
|
257
257
|
})));
|
|
258
258
|
|
|
@@ -753,7 +753,7 @@ export default {
|
|
|
753
753
|
:data-testid="`namespaces-value-${j}`"
|
|
754
754
|
class="ns-value"
|
|
755
755
|
>
|
|
756
|
-
<div>{{ ns.label
|
|
756
|
+
<div>{{ ns.label }}</div>
|
|
757
757
|
<!-- block user from removing the last selection if ns forced filtering is on -->
|
|
758
758
|
<i
|
|
759
759
|
v-if="!namespaceFilterMode || value.length > 1"
|
|
@@ -864,7 +864,7 @@ export default {
|
|
|
864
864
|
v-if="opt.kind === NAMESPACE_FILTER_KINDS.NAMESPACE"
|
|
865
865
|
class="icon icon-folder"
|
|
866
866
|
/>
|
|
867
|
-
<div>{{ opt.label
|
|
867
|
+
<div>{{ opt.label }}</div>
|
|
868
868
|
<i
|
|
869
869
|
v-if="opt.selected"
|
|
870
870
|
class="icon icon-checkmark"
|
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 && row.namespace && row.namespace
|
|
165
|
+
getValue: row => row && row.namespace && row.namespace,
|
|
166
166
|
sort: 'namespace',
|
|
167
167
|
dashIfEmpty: true,
|
|
168
168
|
};
|
package/package.json
CHANGED
package/utils/router.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INSTALL_REDIRECT_META_KEY } from '@shell/config/router/navigation-guards/install-redirect';
|
|
2
2
|
|
|
3
3
|
export function harvesterhci2cloud(str) {
|
|
4
|
-
|
|
4
|
+
return str?.replace('harvesterhci.io', 'cloudhci.io')
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function cloud2harvesterhci(str) {
|
|
@@ -14,11 +14,11 @@ export function cloud2harvesterhci(str) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export function harvester2cloud(str) {
|
|
17
|
-
|
|
17
|
+
return str?.replace('harvester', 'cloud')
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function cloud2harvester(str) {
|
|
21
|
-
|
|
21
|
+
return str?.replace('cloud', 'harvester')
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function queryParamsFor(current, qp, defaults = {}) {
|