Fixing obvious problems with nlink and v-model

Putting in some vue3 fixes that are necessary after pulling in all of the latest changes from harvester/dashboard
This commit is contained in:
Cody Jackson 2024-09-27 06:59:49 -07:00 committed by Francesco Torchia
parent 7293e65fb4
commit 8b6dbc1789
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
4 changed files with 9 additions and 9 deletions

View File

@ -182,9 +182,9 @@ export default {
<div class="text-label">
{{ t('harvester.image.encryptionSecret') }}
</div>
<n-link v-if="encryptionSecret && secretLink" :to="secretLink">
<router-link v-if="encryptionSecret && secretLink" :to="secretLink">
{{ encryptionSecret }}
</n-link>
</router-link>
<span v-else-if="encryptionSecret">
{{ encryptionSecret }}
</span>
@ -199,9 +199,9 @@ export default {
<div class="text-label">
{{ t('harvester.image.sourceImage') }}
</div>
<n-link v-if="sourceImageId && sourceImageLink" :to="sourceImageLink">
<router-link v-if="sourceImageId && sourceImageLink" :to="sourceImageLink">
{{ sourceImageId }}
</n-link>
</router-link>
<span v-else-if="sourceImageId">
{{ sourceImageId }}
</span>

View File

@ -467,7 +467,7 @@ export default {
<LabeledSelect
v-if="value.spec.sourceType === 'clone'"
v-model="sourceImage"
v-model:value="sourceImage"
:options="sourceImageOptions"
:label="t('harvester.image.sourceImage')"
:mode="mode"

View File

@ -78,13 +78,13 @@ export default {
<template #col:name="{row}">
<td>
<span>
<n-link
<router-link
v-if="row?.detailLocation"
:to="row.detailLocation"
>
{{ row.nameDisplay }}
<i v-if="row.isEncrypted" class="icon icon-lock" />
</n-link>
</router-link>
<span v-else>
{{ row.nameDisplay }}
</span>

View File

@ -173,13 +173,13 @@ v-if="getVMName(scope.row)"
<template #col:name="{row}">
<td>
<span>
<n-link
<router-link
v-if="row?.detailLocation"
:to="row.detailLocation"
>
{{ row.nameDisplay }}
<i v-if="row.isEncrypted" class="icon icon-lock" />
</n-link>
</router-link>
<span v-else>
{{ row.nameDisplay }}
</span>