show &mdash character is no encryptionSecret is empty

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2024-09-23 10:59:43 +08:00 committed by Francesco Torchia
parent db21093670
commit 404ec5b8ab
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393

View File

@ -149,9 +149,15 @@ export default {
<div class="text-label"> <div class="text-label">
{{ t('harvester.image.encryptionSecret') }} {{ t('harvester.image.encryptionSecret') }}
</div> </div>
<n-link v-if="secretLink" :to="secretLink"> <n-link v-if="encryptionSecret && secretLink" :to="secretLink">
{{ encryptionSecret }} {{ encryptionSecret }}
</n-link> </n-link>
<span v-else-if="encryptionSecret">
{{ encryptionSecret }}
</span>
<span v-else class="text-muted">
&mdash;
</span>
</div> </div>
</div> </div>