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())