File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
platform/cloud/subscription/components Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 16961696 "waitingForSubscription" : " Complete your subscription in the new tab. We'll automatically detect when you're done!" ,
16971697 "subscribe" : " Subscribe"
16981698 },
1699- "subscribeToRun" : " Subscribe to Run" ,
1699+ "subscribeToRun" : " Subscribe" ,
1700+ "subscribeToRunFull" : " Subscribe to Run" ,
17001701 "subscribeNow" : " Subscribe Now" ,
17011702 "subscribeToComfyCloud" : " Subscribe to Comfy Cloud" ,
17021703 "partnerNodesCredits" : " Partner Nodes credits"
Original file line number Diff line number Diff line change 11<template >
22 <Button
33 v-tooltip.bottom =" {
4- value: $t('subscription.subscribeToRun '),
4+ value: $t('subscription.subscribeToRunFull '),
55 showDelay: 600
66 }"
77 class =" subscribe-to-run-button"
8- :label =" $t('subscription.subscribeToRun') "
8+ :label =" buttonLabel "
99 icon =" pi pi-lock"
1010 severity =" primary"
1111 size =" small"
1515 }"
1616 :pt =" {
1717 root: {
18+ class: 'whitespace-nowrap',
1819 style: {
1920 borderColor: 'transparent'
2021 }
2627</template >
2728
2829<script setup lang="ts">
30+ import { breakpointsTailwind , useBreakpoints } from ' @vueuse/core'
2931import Button from ' primevue/button'
32+ import { computed } from ' vue'
33+ import { useI18n } from ' vue-i18n'
3034
3135import { useSubscription } from ' @/platform/cloud/subscription/composables/useSubscription'
3236import { isCloud } from ' @/platform/distribution/types'
3337import { useTelemetry } from ' @/platform/telemetry'
3438
39+ const { t } = useI18n ()
40+ const breakpoints = useBreakpoints (breakpointsTailwind )
41+ const isMdOrLarger = breakpoints .greaterOrEqual (' md' )
42+
43+ const buttonLabel = computed (() =>
44+ isMdOrLarger .value
45+ ? t (' subscription.subscribeToRunFull' )
46+ : t (' subscription.subscribeToRun' )
47+ )
48+
3549const { showSubscriptionDialog } = useSubscription ()
3650
3751const handleSubscribeToRun = () => {
You can’t perform that action at this time.
0 commit comments