fix(my-joy-beta): hide special tags and metadata
fixes #1106 fixes #1107
This commit is contained in:
parent
81b46b8c53
commit
055b58106a
@ -151,7 +151,9 @@ export default compose(
|
|||||||
const { name } = variables;
|
const { name } = variables;
|
||||||
|
|
||||||
const instance = find(get(rest, 'machines', []), ['name', name]);
|
const instance = find(get(rest, 'machines', []), ['name', name]);
|
||||||
const values = get(instance, 'metadata', []);
|
const values = get(instance, 'metadata', []).filter(
|
||||||
|
({ name = '' }) => name !== 'user-script'
|
||||||
|
);
|
||||||
|
|
||||||
const metadata = values.map(({ name, value }) => ({
|
const metadata = values.map(({ name, value }) => ({
|
||||||
form: METADATA_FORM_KEY(name),
|
form: METADATA_FORM_KEY(name),
|
||||||
|
@ -150,7 +150,9 @@ export default compose(
|
|||||||
const { name } = variables;
|
const { name } = variables;
|
||||||
|
|
||||||
const instance = find(get(rest, 'machines', []), ['name', name]);
|
const instance = find(get(rest, 'machines', []), ['name', name]);
|
||||||
const tags = get(instance, 'tags', []);
|
const tags = get(instance, 'tags', []).filter(
|
||||||
|
({ name = '' }) => !/^triton\.cns\./i.test(name)
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tags,
|
tags,
|
||||||
|
Loading…
Reference in New Issue
Block a user