refac
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
import CommandSuggestionList from './MessageInput/CommandSuggestionList.svelte';
|
import CommandSuggestionList from './MessageInput/CommandSuggestionList.svelte';
|
||||||
import Knobs from '../icons/Knobs.svelte';
|
import Knobs from '../icons/Knobs.svelte';
|
||||||
import ValvesModal from '../workspace/common/ValvesModal.svelte';
|
import ValvesModal from '../workspace/common/ValvesModal.svelte';
|
||||||
import PageEdit from '../icons/PageEdit.svelte';
|
import Note from '../icons/Note.svelte';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import InputModal from '../common/InputModal.svelte';
|
import InputModal from '../common/InputModal.svelte';
|
||||||
import Expand from '../icons/Expand.svelte';
|
import Expand from '../icons/Expand.svelte';
|
||||||
@@ -1834,19 +1834,19 @@
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
{#if prompt !== '' && !history?.currentId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
|
{#if prompt !== '' && !history?.currentId && !$selectedTerminalId && ($config?.features?.enable_notes ?? false) && ($_user?.role === 'admin' || ($_user?.permissions?.features?.notes ?? true))}
|
||||||
<!-- {$i18n.t('Create Note')} -->
|
<!-- {$i18n.t('Create Note')} -->
|
||||||
<Tooltip content={$i18n.t('Create note')} className=" flex items-center">
|
<Tooltip content={$i18n.t('Create note')} className=" flex items-center">
|
||||||
<button
|
<button
|
||||||
id="create-note-button"
|
id="create-note-button"
|
||||||
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-1.5 self-center"
|
class=" text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300 transition rounded-full p-1.5 -mr-1 self-center"
|
||||||
type="button"
|
type="button"
|
||||||
disabled={prompt === '' && files.length === 0}
|
disabled={prompt === '' && files.length === 0}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
createNote();
|
createNote();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PageEdit className="size-4.5 translate-y-[0.5px]" />
|
<Note className="size-4.5 translate-y-[0.5px]" />
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user