Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Add cursor-pointer and tooltip to Telegram copy button
Paulo Castellanoec5a3a3b162b
diff --git a/lang/en/accounts.php b/lang/en/accounts.phpindex 9a58a9ad2..c30ef3ffa 100644--- a/lang/en/accounts.php+++ b/lang/en/accounts.php@@ -92,6 +92,7 @@ return ['connected' => 'Channel connected!','connected_toast' => 'Telegram channel connected successfully!','copied_toast' => 'Command copied to clipboard',+ 'copy_tooltip' => 'Copy command','expired' => 'This code has expired. Generate a new one to try again.','new_code' => 'Generate a new code','retry' => 'Try again',diff --git a/lang/es/accounts.php b/lang/es/accounts.phpindex 48842e10d..0a6fd872a 100644--- a/lang/es/accounts.php+++ b/lang/es/accounts.php@@ -92,6 +92,7 @@ return ['connected' => '¡Canal conectado!','connected_toast' => '¡Canal de Telegram conectado correctamente!','copied_toast' => 'Comando copiado al portapapeles',+ 'copy_tooltip' => 'Copiar comando','expired' => 'Este código ha caducado. Genera uno nuevo para volver a intentarlo.','new_code' => 'Generar un nuevo código','retry' => 'Reintentar',diff --git a/lang/pt-BR/accounts.php b/lang/pt-BR/accounts.phpindex 7c238aa9e..bc1034506 100644--- a/lang/pt-BR/accounts.php+++ b/lang/pt-BR/accounts.php@@ -92,6 +92,7 @@ return ['connected' => 'Canal conectado!','connected_toast' => 'Canal do Telegram conectado com sucesso!','copied_toast' => 'Comando copiado para a área de transferência',+ 'copy_tooltip' => 'Copiar comando','expired' => 'Este código expirou. Gere um novo para tentar de novo.','new_code' => 'Gerar um novo código','retry' => 'Tentar novamente',diff --git a/resources/js/components/accounts/TelegramConnectDialog.vue b/resources/js/components/accounts/TelegramConnectDialog.vueindex 5dff9bf78..de946207c 100644--- a/resources/js/components/accounts/TelegramConnectDialog.vue+++ b/resources/js/components/accounts/TelegramConnectDialog.vue@@ -14,6 +14,12 @@ import {DialogHeader,DialogTitle,} from '@/components/ui/dialog';+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from '@/components/ui/tooltip';import { copyToClipboard } from '@/lib/utils';import {connect as connectTelegram,@@ -203,18 +209,33 @@ onUnmounted(stopPolling);<span>{{$t('accounts.telegram.step_command')}}</span>- <button- type="button"- class="group flex w-full items-center justify-between gap-2 rounded-lg border bg-muted px-3 py-2 text-left font-mono text-sm transition-colors hover:bg-muted/70"- @click="copyCommand"- >- <span class="min-w-0 truncate"- >/connect {{ code }}</span- >- <IconCopy- class="size-4 shrink-0 text-muted-foreground group-hover:text-foreground"- />- </button>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger as-child>+ <button+ type="button"+ class="group flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg border bg-muted px-3 py-2 text-left font-mono text-sm transition-colors hover:bg-muted/70"+ @click="copyCommand"+ >+ <span class="min-w-0 truncate"+ >/connect {{ code }}</span+ >+ <IconCopy+ class="size-4 shrink-0 text-muted-foreground group-hover:text-foreground"+ />+ </button>+ </TooltipTrigger>+ <TooltipContent>+ <p>+ {{+ $t(+ 'accounts.telegram.copy_tooltip',+ )+ }}+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider></div></li></ol>