Skip to content

Commit 9433e3f

Browse files
fix(CrlManagement): migrate to @nextcloud/vue v9 API
Replace NcButton 'type' with 'variant' for error variant. Replace NcActionInput '@update:value' with '@update:modelValue'. Replace NcDialog deprecated ':can-close' prop with ':no-close' as introduced in @nextcloud/vue v9.0.0. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 8ac8a03 commit 9433e3f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/views/CrlManagement/CrlManagement.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
</template>
1515
<NcActionInput v-model="filters.serialNumber"
1616
:label="t('libresign', 'Serial Number')"
17-
@update:value="onFilterChange">
17+
@update:modelValue="onFilterChange">
1818
<template #icon>
1919
<NcIconSvgWrapper :path="mdiMagnify" :size="20" />
2020
</template>
2121
</NcActionInput>
2222

2323
<NcActionInput v-model="filters.owner"
2424
:label="t('libresign', 'Owner')"
25-
@update:value="onFilterChange">
25+
@update:modelValue="onFilterChange">
2626
<template #icon>
2727
<NcIconSvgWrapper :path="mdiAccount" :size="20" />
2828
</template>
@@ -191,7 +191,7 @@
191191
</td>
192192
<td class="crl-table__cell--frozen-right">
193193
<NcButton v-if="entry.status === 'issued'"
194-
type="error"
194+
variant="error"
195195
@click="openRevokeDialog(entry)">
196196
{{ t('libresign', 'Revoke') }}
197197
</NcButton>
@@ -232,7 +232,7 @@
232232
<NcButton @click="closeCaWarningDialog">
233233
{{ t('libresign', 'Cancel') }}
234234
</NcButton>
235-
<NcButton type="error" @click="proceedToRevokeDialog">
235+
<NcButton variant="error" @click="proceedToRevokeDialog">
236236
{{ t('libresign', 'Yes, revoke CA') }}
237237
</NcButton>
238238
</div>
@@ -241,7 +241,7 @@
241241

242242
<NcDialog v-if="revokeDialog.open"
243243
:name="t('libresign', 'Revoke Certificate')"
244-
:can-close="!revokeDialog.loading"
244+
:no-close="revokeDialog.loading"
245245
@update:open="closeRevokeDialog">
246246
<div class="revoke-dialog">
247247
<NcNoteCard type="warning">
@@ -277,7 +277,7 @@
277277
@click="closeRevokeDialog">
278278
{{ t('libresign', 'Cancel') }}
279279
</NcButton>
280-
<NcButton type="error"
280+
<NcButton variant="error"
281281
:disabled="revokeDialog.loading"
282282
@click="confirmRevoke">
283283
<template #icon>

0 commit comments

Comments
 (0)