Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information if cloud-config is empty #152

Merged
merged 1 commit into from
Feb 17, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ <h3>Cloud Config</h3>
</clr-signpost-content>
</clr-signpost>
<div [formGroup]="configMap">
<form clrForm style="width: 100%;">
<div style="background-color: var(--clr-thead-bgcolor, #fafafa); width: fit-content;padding: 9px; border: 1px solid var(--clr-table-border-color, #cccccc);">
<code class="clr-code" style="white-space: pre; color: var(--clr-table-font-color, #666666);">{{ cloudConfig.cloudConfigYaml }}</code>
<form clrForm>
<div class="code-container" *ngIf="cloudConfig.cloudConfigYaml.length > 0">
<code class="clr-code">{{ cloudConfig.cloudConfigYaml }}</code>
</div>
</form>
<div *ngIf="!cloudConfig.cloudConfigYaml.length">There is no Cloud-Init Configuration defined for this VM-Template. This can be done in the Services Step.</div>
</div>
<ng-container *ngIf="configMap && !configMap.valid">
<span class="clr-subtext">All mappings must have key and value filled out. Complete, or remove, any entries
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.clr-code {
white-space: pre;
color: var(--clr-table-font-color, #666666);
}

.code-container {
background-color: var(--clr-thead-bgcolor, #fafafa);
width: 100%;
padding: 9px;
border: 1px solid var(--clr-table-border-color, #cccccc);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { VmtemplateService } from 'src/app/data/vmtemplate.service';
@Component({
selector: 'edit-vmtemplate-wizard',
templateUrl: './edit-vmtemplate.component.html',
styleUrls: ['./edit-vmtemplate.component.scss']
})
export class EditVmtemplateComponent implements OnInit, OnChanges {
public templateDetails: FormGroup;
Expand Down