refactor: rewrite render logic

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yi-Ya Chen
2025-02-07 17:07:00 +08:00
parent 84bacfaff5
commit 68ba934b5a
4 changed files with 55 additions and 43 deletions
+5 -1
View File
@@ -137,7 +137,11 @@ export default {
},
isTpmEnabled(spec) {
return !!spec?.template?.spec?.domain?.devices?.tpm ;
return !!spec?.template?.spec?.domain?.devices?.tpm;
},
isPersistentStateEnabled(spec) {
return !!spec?.template?.spec?.domain?.devices?.tpm?.persistent;
},
isSecureBoot(spec) {