diff --git a/app/Jobs/PublishToSocialPlatform.php b/app/Jobs/PublishToSocialPlatform.php index e84a5ace..d09c6a21 100644 --- a/app/Jobs/PublishToSocialPlatform.php +++ b/app/Jobs/PublishToSocialPlatform.php @@ -34,7 +34,7 @@ public function __construct(public PostPlatform $postPlatform) {} public function handle(): void { if ($this->postPlatform->socialAccount->isDisconnected()) { - $this->postPlatform->markAsFailed('Social account is disconnected'); + $this->postPlatform->markAsFailed(__('posts.errors.account_disconnected')); $this->updatePostStatus(); $this->broadcastStatus(); diff --git a/lang/en/posts.php b/lang/en/posts.php index e5d488ee..6eafe3cd 100644 --- a/lang/en/posts.php +++ b/lang/en/posts.php @@ -212,4 +212,8 @@ 'cannot_edit_published' => 'Published posts cannot be edited.', 'connect_first' => 'Connect at least one social network before creating a post.', ], + + 'errors' => [ + 'account_disconnected' => 'Social account is disconnected', + ], ]; diff --git a/lang/pt-BR/posts.php b/lang/pt-BR/posts.php index df68f42a..a35988e5 100644 --- a/lang/pt-BR/posts.php +++ b/lang/pt-BR/posts.php @@ -212,4 +212,8 @@ 'cannot_edit_published' => 'Posts publicados não podem ser editados.', 'connect_first' => 'Conecte pelo menos uma rede social antes de criar um post.', ], + + 'errors' => [ + 'account_disconnected' => 'Conta social está desconectada', + ], ]; diff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vue index 51235a24..8e831a66 100644 --- a/resources/js/components/AppSidebar.vue +++ b/resources/js/components/AppSidebar.vue @@ -221,8 +221,9 @@ function handleLogout() {
{{ trans('accounts.connection_lost') }}
@@ -207,10 +197,8 @@ const isDisconnected = (account: SocialAccount | null): boolean => {{{ truncatedContent }} - See more + See more
+
{{ content }}
- {{ currentStatus ? $t('posts.no_posts_status', { status: $t(`posts.status.${currentStatus}`) }) : $t('posts.start_creating') }} + {{ currentStatus ? $t('posts.no_posts_status', { + status: $t(`posts.status.${currentStatus}`) + }) : $t('posts.start_creating') }}