From 33b25b8e11d1e82f02ba50932a5b1306ec33836d Mon Sep 17 00:00:00 2001
From: Djamel ALI <dali@takima.fr>
Date: Wed, 3 Aug 2022 11:30:37 +0200
Subject: [PATCH] fix: delete checkbox next to the login/logout button

---
 .../resources/styles/authenticationView.css          | 12 ++----------
 .../src/view/authenticationView.ts                   |  7 ++-----
 2 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/deadlock-plugins/deadlock-extension/resources/styles/authenticationView.css b/deadlock-plugins/deadlock-extension/resources/styles/authenticationView.css
index d4cf5434..1677e347 100644
--- a/deadlock-plugins/deadlock-extension/resources/styles/authenticationView.css
+++ b/deadlock-plugins/deadlock-extension/resources/styles/authenticationView.css
@@ -1,15 +1,7 @@
-.component {
-    display: flex;
+vscode-button {
+    display: inline-block;
     flex-direction: row;
-    align-items: center;
-    justify-content: left;
     margin-top: 0.8em;
-}
-vscode-button {
     margin-left: 0.6em;
     justify-content: center;
-}
-vscode-checkbox {
-    justify-content: center;
-    vertical-align: middle;
 }
\ No newline at end of file
diff --git a/deadlock-plugins/deadlock-extension/src/view/authenticationView.ts b/deadlock-plugins/deadlock-extension/src/view/authenticationView.ts
index 446897d3..86cf126c 100644
--- a/deadlock-plugins/deadlock-extension/src/view/authenticationView.ts
+++ b/deadlock-plugins/deadlock-extension/src/view/authenticationView.ts
@@ -71,13 +71,10 @@ export default class AuthenticationView implements WebviewViewProvider {
     const js = getUri(webview, ['resources', 'js', 'authenticationView.js']);
 
     const html = 
-    `<div class="component">
-      <vscode-checkbox ${this._isAlreadyConnected ? 'checked ' : ''} readonly></vscode-checkbox>
-      <vscode-button onclick="${
+    `<vscode-button onclick="${
         this._isAlreadyConnected ? 'disconnectUserAction' : 'openAuthenticationPageAction'
         }()">${this._isAlreadyConnected ? 'Déconnexion de' : 'Connexion à'} Deadlock
-      </vscode-button>
-    </div>`;
+      </vscode-button>`;
 
     return `<!DOCTYPE html>
             <html lang="en">
-- 
GitLab