fix: tips

This commit is contained in:
Andras Bacsai
2022-08-10 11:22:44 +00:00
parent 91d135bff8
commit b0ef5722fb
8 changed files with 17 additions and 43 deletions

View File

@@ -228,7 +228,6 @@
{:else if $status.application.isRunning}
<button
on:click={stopApplication}
title="Stop application"
type="submit"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-error"
@@ -253,7 +252,6 @@
</button>
<form on:submit|preventDefault={handleDeploySubmit}>
<button
title="Rebuild application"
type="submit"
disabled={$disabledButton || !isQueueActive}
class:hover:text-green-500={isQueueActive}
@@ -285,13 +283,12 @@
{:else}
<form on:submit|preventDefault={handleDeploySubmit}>
<button
title="Build and start application"
type="submit"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-success"
data-tip={$appSession.isAdmin
? 'Build and start application'
: 'You do not have permission to Build and start application.'}
? 'Deploy'
: 'You do not have permission to deploy application.'}
>
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -319,7 +316,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}`}
>
<button
title="Configurations"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip="Configurations"
@@ -355,7 +351,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}/secrets`}
>
<button
title="Secret"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip="Secret"
@@ -387,7 +382,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}/storages`}
>
<button
title="Persistent Storages"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip="Persistent Storages"
@@ -417,7 +411,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}/previews`}
>
<button
title="Previews"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip="Previews"
@@ -450,7 +443,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}/logs`}
>
<button
title={$t('application.logs')}
disabled={$disabledButton || !$status.application.isRunning}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip={$t('application.logs')}
@@ -482,7 +474,6 @@
class:bg-coolgray-500={$page.url.pathname === `/applications/${id}/logs/build`}
>
<button
title="Build Logs"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip="Build Logs"
@@ -513,7 +504,6 @@
<button
on:click={() => deleteApplication(application.name)}
title={$t('application.delete_application')}
type="submit"
disabled={!$appSession.isAdmin}
class:hover:text-red-500={$appSession.isAdmin}

View File

@@ -193,7 +193,6 @@
{:else if $status.database.isRunning}
<button
on:click={stopDatabase}
title={$t('database.stop_database')}
type="submit"
disabled={!$appSession.isAdmin}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-red-500"
@@ -219,7 +218,6 @@
{:else}
<button
on:click={startDatabase}
title={$t('database.start_database')}
type="submit"
disabled={!$appSession.isAdmin}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-green-500"
@@ -251,7 +249,6 @@
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}`}
>
<button
title={$t('application.configurations')}
class="icons bg-transparent tooltip tooltip-bottom text-sm disabled:text-red-500"
data-tip={$t('application.configurations')}
>
@@ -287,7 +284,6 @@
class:bg-coolgray-500={$page.url.pathname === `/databases/${id}/logs`}
>
<button
title={$t('database.logs')}
disabled={!$status.database.isRunning}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip={$t('database.logs')}
@@ -313,7 +309,6 @@
>
<button
on:click={deleteDatabase}
title={$t('database.delete_database')}
type="submit"
disabled={!$appSession.isAdmin}
class:hover:text-red-500={$appSession.isAdmin}

View File

@@ -88,11 +88,10 @@
<nav class="nav-side">
<button
on:click={() => deleteDestination(destination)}
title={$t('destination.delete_destination')}
type="submit"
disabled={!$appSession.isAdmin && isDestinationDeletable}
class:hover:text-red-500={$appSession.isAdmin && isDestinationDeletable}
class="icons tooltip tooltip-bottom bg-transparent text-sm"
class="icons tooltip tooltip-left bg-transparent text-sm"
class:text-stone-600={!isDestinationDeletable}
data-tip={deletable()}><DeleteIcon /></button
>

View File

@@ -49,13 +49,12 @@
<nav class="nav-side">
<button
on:click={deleteTeam}
title={$t('source.delete_git_source')}
type="submit"
disabled={!$appSession.isAdmin}
class:hover:text-red-500={$appSession.isAdmin}
class="icons tooltip tooltip-bottom bg-transparent text-sm"
class="icons tooltip tooltip-left bg-transparent text-sm"
data-tip={$appSession.isAdmin
? 'Delete Team'
? 'Delete'
: $t('destination.permission_denied_delete_destination')}><DeleteIcon /></button
>
</nav>

View File

@@ -226,7 +226,6 @@
{:else if $status.service.isRunning}
<button
on:click={stopService}
title={$t('service.stop_service')}
type="submit"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-red-500"
@@ -252,7 +251,6 @@
{:else}
<button
on:click={startService}
title={$t('service.start_service')}
type="submit"
disabled={$disabledButton}
class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-green-500"
@@ -285,7 +283,6 @@
class:bg-coolgray-500={$page.url.pathname === `/services/${id}`}
>
<button
title={$t('application.configurations')}
class="icons bg-transparent tooltip tooltip-bottom text-sm disabled:text-red-500"
data-tip={$t('application.configurations')}
>
@@ -320,7 +317,6 @@
class:bg-coolgray-500={$page.url.pathname === `/services/${id}/secrets`}
>
<button
title={$t('application.secret')}
class="icons bg-transparent tooltip tooltip-bottom text-sm disabled:text-red-500"
data-tip={$t('application.secret')}
>
@@ -351,7 +347,6 @@
class:bg-coolgray-500={$page.url.pathname === `/services/${id}/storages`}
>
<button
title="Persistent Storage"
class="icons bg-transparent tooltip tooltip-bottom text-sm disabled:text-red-500"
data-tip="Persistent Storage"
>
@@ -381,7 +376,6 @@
class:bg-coolgray-500={$page.url.pathname === `/services/${id}/logs`}
>
<button
title={$t('service.logs')}
disabled={!$status.service.isRunning}
class="icons bg-transparent tooltip tooltip-bottom text-sm"
data-tip={$t('service.logs')}
@@ -408,7 +402,6 @@
{/if}
<button
on:click={deleteService}
title={$t('service.delete_service')}
type="submit"
disabled={!$appSession.isAdmin}
class:hover:text-red-500={$appSession.isAdmin}

View File

@@ -56,7 +56,6 @@
<nav class="nav-side">
<button
on:click={() => deleteSource(source.name)}
title={$t('source.delete_git_source')}
type="submit"
disabled={!$appSession.isAdmin}
class:hover:text-red-500={$appSession.isAdmin}