refactor: enable add volume button regardless of rows length (#869)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2026-05-18 12:34:32 +08:00 committed by GitHub
parent 8e65274b0c
commit 1446aac168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,7 +475,6 @@ export default {
<button <button
type="button" type="button"
class="btn btn-sm bg-primary mr-15 mb-10" class="btn btn-sm bg-primary mr-15 mb-10"
:disabled="rows.length === 0"
@click="addVolume(SOURCE_TYPE.NEW)" @click="addVolume(SOURCE_TYPE.NEW)"
> >
{{ t('harvester.virtualMachine.volume.addVolume') }} {{ t('harvester.virtualMachine.volume.addVolume') }}