File tree 6 files changed +17
-3
lines changed
packages/ui/components/link
6 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2
2
import type { Attendee } from ' @vuejs-jp/model'
3
3
import { ref } from ' vue'
4
4
import { useSupabase } from ' ~/composables/useSupabase'
5
+ import { endedCreateNamecard } from ' ~/utils/constants'
5
6
6
7
interface AttendeeListProps {
7
8
attendees: Attendee []
@@ -79,6 +80,7 @@ const handleConfirm = (attendee?: Attendee) => {
79
80
class =" action"
80
81
background-color =" white"
81
82
color =" vue-blue"
83
+ :disabled =" endedCreateNamecard"
82
84
@click =" () => handleDialog(attendee?.id)"
83
85
>
84
86
Edit
@@ -88,6 +90,7 @@ const handleConfirm = (attendee?: Attendee) => {
88
90
class =" action"
89
91
background-color =" white"
90
92
color =" vue-blue"
93
+ :disabled =" endedCreateNamecard"
91
94
@click =" () => handleConfirm(attendee)"
92
95
>
93
96
{{ attendee.activated_at ? 'Deactivate' : 'Activate' }}
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { useLocaleCurrent } from ' ~/composables/useLocaleCurrent'
3
- import { ticketUrl } from ' ~/utils/constants'
3
+ import { endedCreateNamecard , ticketUrl } from ' ~/utils/constants'
4
4
5
5
const { locale : currentLocale } = useLocaleCurrent ()
6
6
</script >
@@ -32,7 +32,7 @@ const { locale: currentLocale } = useLocaleCurrent()
32
32
background-color =" vue-green/200"
33
33
color =" white"
34
34
>
35
- {{ $t('namecard.createNamecard') }}
35
+ {{ endedCreateNamecard ? $t('namecard.confirmNamecard') : $t('namecard.createNamecard') }}
36
36
</VFLinkButton >
37
37
<VFLinkButton
38
38
class =" action-button"
Original file line number Diff line number Diff line change 234
234
"sectionTitle1" : " With your avatar and name on it!" ,
235
235
"sectionTitle2" : " Namecard" ,
236
236
"createNamecard" : " Create Namecard" ,
237
- "title_edit" : " Create/Edit Name Card" ,
237
+ "confirmNamecard" : " Confirm Namecard" ,
238
+ "title_edit" : " Create/Edit Namecard" ,
238
239
"cancel" : " Cancel" ,
239
240
"edit" : " Edit" ,
240
241
"login_title" : " Login via social account" ,
Original file line number Diff line number Diff line change 252
252
"sectionTitle1" : " アバター+名前入りがもらえる!" ,
253
253
"sectionTitle2" : " ネームカード" ,
254
254
"createNamecard" : " ネームカードを作成する" ,
255
+ "confirmNamecard" : " ネームカードを確認する" ,
255
256
"title_edit" : " ネームカード作成・編集" ,
256
257
"cancel" : " キャンセル" ,
257
258
"edit" : " 編集する" ,
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ export const endedApplyEarly = true
49
49
50
50
export const endedApplyHandson = true
51
51
52
+ export const endedCreateNamecard = true
53
+
52
54
export const displayNameMaxLength = 24
53
55
54
56
export const personalSponsors = [
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ interface LinkButtonProps extends /* @vue-ignore */ _LinkButtonProps {
12
12
href? : string
13
13
target? : string
14
14
iconName? : IconName
15
+ disabled? : boolean
15
16
}
16
17
const props = withDefaults (defineProps <LinkButtonProps >(), {
17
18
is: ' a' ,
18
19
href: ' ' ,
19
20
target: ' _blank' ,
20
21
iconName: undefined ,
22
+ disabled: false ,
21
23
})
22
24
23
25
const { color : updateColor } = useColor ()
@@ -65,6 +67,7 @@ const iconColor = computed(() => {
65
67
:is =" is ?? 'a'"
66
68
:href
67
69
:target
70
+ :disabled
68
71
:style
69
72
class =" link-button"
70
73
@mouseover =" hoverIn"
@@ -103,6 +106,10 @@ const iconColor = computed(() => {
103
106
.link-button :hover {
104
107
transition : 0.2s ;
105
108
}
109
+ .link-button :disabled {
110
+ pointer-events : none ;
111
+ opacity : 0.6 ;
112
+ }
106
113
.icon {
107
114
margin-right : calc (var (--unit ) * 1 );
108
115
width : var (--icon-size );
You can’t perform that action at this time.
0 commit comments