Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/__tests__/reducers/features.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('featureReducer', () => {
[FLAGS.CONSOLE_CLI_DOWNLOAD]: false,
[FLAGS.CONSOLE_NOTIFICATION]: false,
[FLAGS.CONSOLE_EXTERNAL_LOG_LINK]: false,
[FLAGS.CONSOLE_YAML_SAMPLE]: false,
}),
);
});
Expand Down
15 changes: 7 additions & 8 deletions frontend/public/components/edit-yaml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ window.monaco.editor.defineTheme('console', {
},
});

const generateObjToLoad = (kind, templateName, namespace = 'default') => {
const sampleObj = safeLoad(yamlTemplates.getIn([kind, templateName]));
const generateObjToLoad = (kind, id, yaml, namespace = 'default') => {
const sampleObj = safeLoad(yaml ? yaml : yamlTemplates.getIn([kind, id]));
if (_.has(sampleObj.metadata, 'namespace')) {
sampleObj.metadata.namespace = namespace;
}
Expand Down Expand Up @@ -388,16 +388,15 @@ export const EditYAML = connect(stateToProps)(
saveAs(blob, filename);
}

loadSampleYaml_(templateName = 'default', kind = referenceForModel(this.props.model)) {
const sampleObj = generateObjToLoad(kind, templateName, this.props.obj.metadata.namespace);
loadSampleYaml_(id = 'default', yaml = '', kind = referenceForModel(this.props.model)) {
const sampleObj = generateObjToLoad(kind, id, yaml, this.props.obj.metadata.namespace);
this.setState({ sampleObj });
this.loadYaml(true, sampleObj);
}

downloadSampleYaml_(templateName = 'default', kind = referenceForModel(this.props.model)) {
const data = safeDump(
generateObjToLoad(kind, templateName, this.props.obj.metadata.namespace),
);
downloadSampleYaml_(id = 'default', yaml = '', kind = referenceForModel(this.props.model)) {
const sampleObj = generateObjToLoad(kind, id, yaml, this.props.obj.metadata.namespace);
const data = safeDump(sampleObj);
this.download(data);
}

Expand Down
21 changes: 2 additions & 19 deletions frontend/public/components/sidebars/_resource-sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
.co-resource-sidebar-list {
Comment thread
rhamilto marked this conversation as resolved.
Outdated
padding-left: 15px;
}

.co-resource-sidebar-item {
border-top: 1px solid #ccc;
padding: 20px 0;
padding: ($line-height-computed / 2) 0 $line-height-computed;

&:first-child {
border-top: 0;
padding-top: 0;
}
}

.co-resource-sidebar-item__details {
margin: 0;
padding: 25px 0;
}

.co-resource-sidebar-item__header {
font-size: ($font-size-base + 2);
}

.co-resource-sidebar-item__img {
padding: 20px 0;
}

.co-role-sidebar-subheader {
font-weight: var(--pf-global--FontWeight--normal);
margin: $line-height-computed 0;
}
38 changes: 0 additions & 38 deletions frontend/public/components/sidebars/build-config-sidebar.jsx

This file was deleted.

92 changes: 0 additions & 92 deletions frontend/public/components/sidebars/network-policy-sidebar.jsx

This file was deleted.

42 changes: 0 additions & 42 deletions frontend/public/components/sidebars/resource-quota-sidebar.jsx

This file was deleted.

Loading