fix(my-joy-beta): hide special tags and metadata

fixes #1106
fixes #1107
This commit is contained in:
Sérgio Ramos 2018-01-25 17:30:01 +00:00 committed by Sérgio Ramos
parent 81b46b8c53
commit 055b58106a
2 changed files with 6 additions and 2 deletions

View File

@ -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),

View File

@ -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,