From 94c3129ad18133a9de4e77a7d1b8fa18f1be3fc1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 21 Jul 2026 21:19:48 +0200 Subject: [PATCH] fix(ui): show GitLab Connected badge beside title Match application status layout by placing the Connected badge next to the page heading, and drop the redundant Disconnect action (re-auth is done via Connect after tokens expire or credentials are updated). --- app/Livewire/Source/Gitlab/Change.php | 18 ------------------ .../livewire/source/gitlab/change.blade.php | 15 ++++----------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/app/Livewire/Source/Gitlab/Change.php b/app/Livewire/Source/Gitlab/Change.php index bab6a41d1..3038ff2a1 100644 --- a/app/Livewire/Source/Gitlab/Change.php +++ b/app/Livewire/Source/Gitlab/Change.php @@ -319,24 +319,6 @@ class Change extends Component } } - public function disconnect() - { - try { - $this->authorize('update', $this->gitlab_app); - - $this->gitlab_app->update([ - 'access_token' => null, - 'refresh_token' => null, - 'expires_at' => null, - ]); - - $this->isConnected = false; - $this->dispatch('success', 'GitLab App disconnected.'); - } catch (\Throwable $e) { - return handleError($e, $this); - } - } - public function delete() { try { diff --git a/resources/views/livewire/source/gitlab/change.blade.php b/resources/views/livewire/source/gitlab/change.blade.php index 3f43874eb..f4156b811 100644 --- a/resources/views/livewire/source/gitlab/change.blade.php +++ b/resources/views/livewire/source/gitlab/change.blade.php @@ -2,7 +2,10 @@ @if ($isConnected)
-

GitLab App

+
+

GitLab App

+ +
Save Test Connection @@ -17,16 +20,6 @@
Your GitLab App for private repositories.
-
- - - Connected - - - Disconnect - -
@if (!isCloud())