mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
parent
b3517c63e8
commit
d784d5c367
@ -33,7 +33,16 @@
|
|||||||
class="h-14 {className} flex items-center space-x-3 {colorClassName} rounded-xl border border-gray-100 dark:border-gray-800 text-left"
|
class="h-14 {className} flex items-center space-x-3 {colorClassName} rounded-xl border border-gray-100 dark:border-gray-800 text-left"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
showModal = !showModal;
|
if (file.content) {
|
||||||
|
showModal = !showModal;
|
||||||
|
} else {
|
||||||
|
if (url) {
|
||||||
|
if (type === 'file') {
|
||||||
|
window.open(`${url}/content`, '_blank').focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dispatch('click');
|
dispatch('click');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user