Skip to content

Commit 9fd74d6

Browse files
committed
refactor: adjust nextcloud-vue props to latest version
`type` is deprecated in v8 and removed in v9, so this makes Vue 3 migration easier by already using the new style. Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent f2c88d0 commit 9fd74d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/SlideShow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
v-if="!isFirstPage && isMobile"
2323
:aria-label="t('firstrunwizard', 'Go to previous page')"
2424
:class="$style.button_back"
25-
type="tertiary"
25+
variant="tertiary"
2626
@click="$emit('update:current-index', currentIndex - 1)">
2727
<template #icon>
2828
<NcIconSvgWrapper :path="mdiArrowLeft" />
@@ -33,7 +33,7 @@
3333
<NcButton
3434
:aria-label="t('firstrunwizard', 'Close')"
3535
:class="$style.button_close"
36-
:type="isFirstPage ? 'primary' : 'tertiary'"
36+
:variant="isFirstPage ? 'primary' : 'tertiary'"
3737
@click="$emit('update:current-index', -1)">
3838
<template #icon>
3939
<NcIconSvgWrapper :path="mdiClose" />
@@ -59,7 +59,7 @@
5959
v-for="button, index of currentPage.buttons"
6060
:key="button.to"
6161
alignment="center-reverse"
62-
:type="index === currentPage.buttons.length - 1 ? 'primary' : 'secondary'"
62+
:variant="index === currentPage.buttons.length - 1 ? 'primary' : 'secondary'"
6363
:wide="index === currentPage.buttons.length - 1"
6464
@click="goToPage(button.to)">
6565
<template v-if="!isLastPage" #icon>

0 commit comments

Comments
 (0)