@@ -10,11 +10,11 @@ import { useRouter } from 'vue-router'
1010import { useSessionStore } from ' ../../../stores/session'
1111
1212import { t } from ' @nextcloud/l10n'
13- import { ButtonVariant } from ' @nextcloud/vue/components/NcButton'
1413
1514import ButtonModal from ' ../../Base/modules/ButtonModal.vue'
1615import { ButtonMode } from ' ../../../Types'
1716import PollCreateDlg from ' ../../Create/PollCreateDlg.vue'
17+ import { ButtonVariant } from ' @nextcloud/vue/components/NcButton'
1818
1919import PlusIcon from ' vue-material-design-icons/Plus.vue'
2020import { NcDialog } from ' @nextcloud/vue'
@@ -28,7 +28,7 @@ defineProps({
2828 default: t (' polls' , ' Add poll' ),
2929 },
3030 modalSize: {
31- type: String ,
31+ type: String as PropType < ' primary ' | ' secondary ' | ' tertiary ' > ,
3232 default: ' normal' ,
3333 },
3434 buttonMode: {
@@ -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 >
0 commit comments