chore: format
This commit is contained in:
@@ -1443,7 +1443,9 @@
|
||||
</InputMenu>
|
||||
|
||||
{#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || (toggleFilters && toggleFilters.length > 0)}
|
||||
<div class="flex self-center w-[1px] h-4 mx-1 bg-gray-200/50 dark:bg-gray-800/50" />
|
||||
<div
|
||||
class="flex self-center w-[1px] h-4 mx-1 bg-gray-200/50 dark:bg-gray-800/50"
|
||||
/>
|
||||
|
||||
<IntegrationsMenu
|
||||
selectedModels={atSelectedModel ? [atSelectedModel.id] : selectedModels}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
$: fileUploadEnabled =
|
||||
fileUploadCapableModels.length === selectedModels.length &&
|
||||
($user?.role === 'admin' || $user?.permissions?.chat?.file_upload);
|
||||
|
||||
|
||||
$: if (!fileUploadEnabled && files.length > 0) {
|
||||
files = [];
|
||||
}
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
>
|
||||
<span>{keys.map(formatKey).join(isMac ? '' : '+')}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
@@ -34,18 +34,18 @@
|
||||
<div class=" flex items-center gap-2 mr-3">
|
||||
<div class="self-center flex items-center">
|
||||
<Checkbox
|
||||
state={_actions[action].is_global
|
||||
? 'checked'
|
||||
: _actions[action].selected
|
||||
? 'checked'
|
||||
: 'unchecked'}
|
||||
disabled={_actions[action].is_global}
|
||||
on:change={(e) => {
|
||||
if (!_actions[action].is_global) {
|
||||
_actions[action].selected = e.detail === 'checked';
|
||||
selectedActionIds = Object.keys(_actions).filter((t) => _actions[t].selected);
|
||||
}
|
||||
}}
|
||||
state={_actions[action].is_global
|
||||
? 'checked'
|
||||
: _actions[action].selected
|
||||
? 'checked'
|
||||
: 'unchecked'}
|
||||
disabled={_actions[action].is_global}
|
||||
on:change={(e) => {
|
||||
if (!_actions[action].is_global) {
|
||||
_actions[action].selected = e.detail === 'checked';
|
||||
selectedActionIds = Object.keys(_actions).filter((t) => _actions[t].selected);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user