fix: Fix CloudConfigTemplate UserData editor remaining editable in view-mode (#939)

Signed-off-by: Siva Kanakala <siva.kanakala@suse.com>
This commit is contained in:
Siva Kanakala 2026-06-24 09:03:19 +05:30 committed by GitHub
parent 62a19ee3fb
commit 135d520b8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,7 @@ export default {
<YamlEditor
ref="yamlUser"
v-model:value="config"
:mode="mode"
class="yaml-editor"
:editor-mode="mode === 'view' ? 'VIEW_CODE' : 'EDIT_CODE'"
@onChanges="update"