From b56e28d27a8fd7767d697f2f5bbd8e5eec61c5f9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 28 Feb 2022 09:48:12 +0100 Subject: [PATCH] UI: colorful states --- src/routes/applications/[id]/__layout.svelte | 4 ++-- src/routes/databases/[id]/__layout.svelte | 4 ++-- src/routes/login/index.svelte | 8 +++++--- src/routes/services/[id]/__layout.svelte | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/routes/applications/[id]/__layout.svelte b/src/routes/applications/[id]/__layout.svelte index e25e63cc2..e95f95d05 100644 --- a/src/routes/applications/[id]/__layout.svelte +++ b/src/routes/applications/[id]/__layout.svelte @@ -128,7 +128,7 @@ title="Stop application" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-green-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 text-red-500" data-tooltip={$session.isAdmin ? 'Stop application' : 'You do not have permission to stop the application.'} @@ -153,7 +153,7 @@ title="Rebuild application" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-green-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:text-green-500" data-tooltip={$session.isAdmin ? 'Rebuild application' : 'You do not have permission to rebuild application.'} diff --git a/src/routes/databases/[id]/__layout.svelte b/src/routes/databases/[id]/__layout.svelte index 2da542993..ae08d48f7 100644 --- a/src/routes/databases/[id]/__layout.svelte +++ b/src/routes/databases/[id]/__layout.svelte @@ -120,7 +120,7 @@ title="Stop database" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-purple-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 text-red-500" data-tooltip={$session.isAdmin ? 'Stop database' : 'You do not have permission to stop the database.'} @@ -146,7 +146,7 @@ title="Start database" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-purple-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 text-green-500" data-tooltip={$session.isAdmin ? 'Start database' : 'You do not have permission to start the database.'} diff --git a/src/routes/login/index.svelte b/src/routes/login/index.svelte index 27193ddc9..b321bc086 100644 --- a/src/routes/login/index.svelte +++ b/src/routes/login/index.svelte @@ -71,12 +71,14 @@ class:text-stone-600={loading} class:bg-coollabs={!loading}>{loading ? 'Authenticating...' : 'Login'} + Register - goto('/reset')}>Reset password diff --git a/src/routes/services/[id]/__layout.svelte b/src/routes/services/[id]/__layout.svelte index 21012ad3e..e1f5b21a6 100644 --- a/src/routes/services/[id]/__layout.svelte +++ b/src/routes/services/[id]/__layout.svelte @@ -140,7 +140,7 @@ title="Stop Service" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-pink-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 text-red-500" data-tooltip={$session.isAdmin ? 'Stop Service' : 'You do not have permission to stop the service.'} @@ -166,7 +166,7 @@ title="Start Service" type="submit" disabled={!$session.isAdmin} - class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 hover:bg-pink-600 hover:text-white" + class="icons bg-transparent tooltip-bottom text-sm flex items-center space-x-2 text-green-500" data-tooltip={$session.isAdmin ? 'Start Service' : 'You do not have permission to start the service.'}