Skip to content

Commit 3ad8737

Browse files
fix(EnvelopeFilesList): migrate to @nextcloud/vue v9 API
Replace deprecated NcButton 'type' prop with 'variant' for primary and error variants. Replace NcCheckboxRadioSwitch ':checked' / '@update:checked' with ':modelValue' / '@update:modelValue'. Replace NcTextField '@update:value' with '@update:modelValue'. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 1a0881f commit 3ad8737

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/RightSidebar/EnvelopeFilesList.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
:helper-text="nameHelperText"
2525
:minlength="ENVELOPE_NAME_MIN_LENGTH"
2626
:maxlength="ENVELOPE_NAME_MAX_LENGTH"
27-
@update:value="onEnvelopeNameChange" />
27+
@update:modelValue="onEnvelopeNameChange" />
2828
<span v-if="isSavingName" class="saving-indicator">
2929
<NcLoadingIcon :size="20" />
3030
</span>
@@ -47,12 +47,12 @@
4747
</NcEmptyContent>
4848
<div v-else ref="scrollContainer" class="files-list" @scroll="onScroll">
4949
<div v-if="canDelete" class="files-list__header">
50-
<NcCheckboxRadioSwitch :checked="allSelected"
51-
@update:checked="toggleSelectAll">
50+
<NcCheckboxRadioSwitch :modelValue="allSelected"
51+
@update:modelValue="toggleSelectAll">
5252
{{ selectedCount > 0 ? t('libresign', '{count} selected', { count: selectedCount }) : t('libresign', 'Select all') }}
5353
</NcCheckboxRadioSwitch>
5454
<NcButton v-if="selectedCount > 0"
55-
type="error"
55+
variant="error"
5656
:disabled="hasLoading"
5757
@click="handleDeleteSelected">
5858
<template #icon>
@@ -67,8 +67,8 @@
6767
:details="file.statusText">
6868
<template #icon>
6969
<NcCheckboxRadioSwitch v-if="canDelete"
70-
:checked="isSelected(file.id)"
71-
@update:checked="toggleSelect(file.id)" />
70+
:modelValue="isSelected(file.id)"
71+
@update:modelValue="toggleSelect(file.id)" />
7272
<img v-if="getPreviewUrl(file)"
7373
:src="getPreviewUrl(file)"
7474
alt=""
@@ -114,7 +114,7 @@
114114
</div>
115115
<template #actions>
116116
<NcButton v-if="canAddFile"
117-
type="primary"
117+
variant="primary"
118118
:disabled="hasLoading"
119119
@click="addFileToEnvelope">
120120
<template #icon>

0 commit comments

Comments
 (0)