Skip to content

Commit f35ec94

Browse files
authored
Merge pull request #4023 from nextcloud/dep/nextcloud-vue-9.rc.1
Bump @nextcloud/vue from 9.0.0-alpha.8 to 9.0.0-rc.1
2 parents 23dc6c8 + ced113d commit f35ec94

34 files changed

Lines changed: 84 additions & 135 deletions

package-lock.json

Lines changed: 11 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Actions/modules/ActionAddOption.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { computed } from 'vue'
88
import { t } from '@nextcloud/l10n'
99
import { emit } from '@nextcloud/event-bus'
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
import AddDateIcon from 'vue-material-design-icons/CalendarPlus.vue'
1212
import { Event } from '../../../Types'
1313
@@ -31,7 +31,7 @@ async function clickAction() {
3131
<template>
3232
<div class="action option-date-add">
3333
<NcButton
34-
:variant="ButtonVariant.Primary"
34+
:variant="'primary'"
3535
:aria-label="buttonAriaLabel"
3636
@click="clickAction">
3737
<template #icon>

src/components/Actions/modules/ActionAddPoll.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { useRouter } from 'vue-router'
1010
import { useSessionStore } from '../../../stores/session'
1111
1212
import { t } from '@nextcloud/l10n'
13-
import { ButtonVariant } from '@nextcloud/vue/components/NcButton'
1413
1514
import ButtonModal from '../../Base/modules/ButtonModal.vue'
1615
import { ButtonMode } from '../../../Types'
1716
import PollCreateDlg from '../../Create/PollCreateDlg.vue'
1817
1918
import PlusIcon from 'vue-material-design-icons/Plus.vue'
2019
import { NcDialog } from '@nextcloud/vue'
20+
import { ButtonVariant } from '@nextcloud/vue/components/NcButton'
2121
2222
const router = useRouter()
2323
const sessionStore = useSessionStore()
@@ -75,7 +75,7 @@ const confirmationDialogProps = {
7575
},
7676
{
7777
label: t('polls', 'Open poll now'),
78-
variant: ButtonVariant.Primary,
78+
variant: 'primary' as ButtonVariant,
7979
callback: () => {
8080
router.push({
8181
name: 'vote',
@@ -104,7 +104,7 @@ function addAnotherPoll() {
104104
"
105105
:modal-size="modalSize"
106106
:button-mode="buttonMode"
107-
:button-variant="ButtonVariant.Primary">
107+
:button-variant="'primary'">
108108
<template #icon>
109109
<PlusIcon size="20" decorative />
110110
</template>

src/components/Actions/modules/ActionDelete.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { ref, computed } from 'vue'
88
import { t, n } from '@nextcloud/l10n'
99
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
1212
import DeleteIcon from 'vue-material-design-icons/Delete.vue'
1313
import RestoreIcon from 'vue-material-design-icons/Recycle.vue'
@@ -102,7 +102,7 @@ function restoreItem(): void {
102102
<div class="">
103103
<NcButton
104104
:name="computedTitle"
105-
:variant="ButtonVariant.Tertiary"
105+
:variant="'tertiary'"
106106
:aria-label="computedTitle">
107107
<template #icon>
108108
<RestoreIcon

src/components/Actions/modules/ActionDeleteOrphanedVotes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script setup lang="ts">
77
import { t } from '@nextcloud/l10n'
88
9-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
9+
import NcButton from '@nextcloud/vue/components/NcButton'
1010
1111
import { useVotesStore } from '../../../stores/votes.ts'
1212
@@ -17,7 +17,7 @@ const caption = t('polls', 'Delete orphaned')
1717
<template>
1818
<div class="action toggle-sidebar">
1919
<NcButton
20-
:variant="ButtonVariant.Primary"
20+
:variant="'primary'"
2121
:aria-label="caption"
2222
@click="votesStore.removeOrphanedVotes()">
2323
{{ caption }}

src/components/Actions/modules/ActionOpenOptionsSidebar.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { emit } from '@nextcloud/event-bus'
88
import { t } from '@nextcloud/l10n'
99
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
import { Event } from '../../../Types'
1212
1313
const caption = t('polls', 'Add some!')
@@ -25,10 +25,7 @@ function clickAction() {
2525

2626
<template>
2727
<div class="action toggle-sidebar">
28-
<NcButton
29-
:variant="ButtonVariant.Primary"
30-
:aria-label="caption"
31-
@click="clickAction()">
28+
<NcButton :variant="'primary'" :aria-label="caption" @click="clickAction()">
3229
{{ caption }}
3330
</NcButton>
3431
</div>

src/components/Actions/modules/ActionOpenSharesSidebar.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { emit } from '@nextcloud/event-bus'
88
import { t } from '@nextcloud/l10n'
99
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
import { Event } from '../../../Types'
1212
1313
const caption = t('polls', 'Edit access')
@@ -25,10 +25,7 @@ function clickAction() {
2525

2626
<template>
2727
<div class="action toggle-sidebar">
28-
<NcButton
29-
:variant="ButtonVariant.Primary"
30-
:aria-label="caption"
31-
@click="clickAction()">
28+
<NcButton :variant="'primary'" :aria-label="caption" @click="clickAction()">
3229
{{ caption }}
3330
</NcButton>
3431
</div>

src/components/Actions/modules/ActionRegister.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { ref } from 'vue'
88
import { t } from '@nextcloud/l10n'
99
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
import NcModal from '@nextcloud/vue/components/NcModal'
1212
1313
import PublicRegisterModal from '../../Public/PublicRegisterModal.vue'
@@ -20,7 +20,7 @@ const registerModalSize = 'large'
2020
<template>
2121
<div class="action toggle-sidebar">
2222
<NcButton
23-
:variant="ButtonVariant.Primary"
23+
:variant="'primary'"
2424
:aria-label="caption"
2525
@click="showRegistration = true">
2626
{{ caption }}

src/components/Actions/modules/ActionSendConfirmed.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ref } from 'vue'
99
import { t, n } from '@nextcloud/l10n'
1010
1111
import NcModal from '@nextcloud/vue/components/NcModal'
12-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
12+
import NcButton from '@nextcloud/vue/components/NcButton'
1313
1414
import EmailCheckIcon from 'vue-material-design-icons/EmailCheck.vue' // view-comfy-outline
1515
@@ -65,7 +65,7 @@ async function clickAction() {
6565
<template>
6666
<div class="action send-confirmations">
6767
<NcButton
68-
:variant="ButtonVariant.Primary"
68+
:variant="'primary'"
6969
:aria-label="sendButtonCaption"
7070
:disabled="disableButton"
7171
@click="clickAction()">

src/components/Actions/modules/ActionSwitchSafeTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { t } from '@nextcloud/l10n'
88
import { usePollStore } from '../../../stores/poll.ts'
99
10-
import NcButton, { ButtonVariant } from '@nextcloud/vue/components/NcButton'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1111
1212
const pollStore = usePollStore()
1313
const caption = t('polls', 'Reveal them')
@@ -16,7 +16,7 @@ const caption = t('polls', 'Reveal them')
1616
<template>
1717
<div class="action toggle-sidebar">
1818
<NcButton
19-
:variant="ButtonVariant.Primary"
19+
:variant="'primary'"
2020
:aria-label="caption"
2121
@click="pollStore.revealParticipants = true">
2222
{{ caption }}

0 commit comments

Comments
 (0)