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

re-set default type to vsphere when type is unknown #650

Merged
merged 1 commit into from
Feb 26, 2024
Merged
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
10 changes: 8 additions & 2 deletions src/app/components/console/console.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<div class="container background">
@if ({ value: virtualMachine$ | async }; as virtualMachine) {
@if (virtualMachine.value != null) {
@defer (when virtualMachine.value.type == vmType.Proxmox) {
@defer (
when virtualMachine.value.type == vmType.Proxmox;
prefetch on idle
) {
<app-options-bar2
[vm]="virtualMachine.value"
[readOnly]="readOnly"
Expand All @@ -16,7 +19,10 @@
[readOnly]="readOnly"
></app-proxmox-console>
}
@defer (when virtualMachine.value.type == vmType.Vsphere) {
@defer (
when virtualMachine.value.type == vmType.Vsphere || virtualMachine.value.type == vmType.Unknown;
prefetch on idle
) {
<app-options-bar
[readOnly]="readOnly"
[vm]="vsphereVm$ | async"
Expand Down
Loading