From bef0c3f1f97f7a82c77ca251f8418b1c88bdb690 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Tue, 27 Aug 2024 14:55:21 +0800 Subject: [PATCH] Add restoring status for image Signed-off-by: andy.lee (cherry picked from commit 04435605f716de4ceb454875a60ad40ad1fa724c) --- pkg/harvester/models/harvesterhci.io.virtualmachineimage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/harvester/models/harvesterhci.io.virtualmachineimage.js b/pkg/harvester/models/harvesterhci.io.virtualmachineimage.js index 5480a74c675..704504efb47 100644 --- a/pkg/harvester/models/harvesterhci.io.virtualmachineimage.js +++ b/pkg/harvester/models/harvesterhci.io.virtualmachineimage.js @@ -102,6 +102,10 @@ export default class HciVmImage extends HarvesterResource { const imported = this.getStatusConditionOfType('Imported'); if (imported?.status === 'Unknown') { + if (this.spec.sourceType === 'restore') { + return 'Restoring'; + } + if (this.spec.sourceType === 'download') { return 'Downloading'; }