mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
83d049a465
commit
a914868e3c
4 changed files with 17 additions and 1 deletions
|
|
@ -83,7 +83,11 @@
|
|||
|
||||
clearTimeout(debounceTimer);
|
||||
debounceTimer = setTimeout(() => {
|
||||
getUserList();
|
||||
if (page !== 1) {
|
||||
page = 1;
|
||||
} else {
|
||||
getUserList();
|
||||
}
|
||||
}, 300);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1399,12 +1399,14 @@
|
|||
type="button"
|
||||
on:click={() => {
|
||||
includeContent = !includeContent;
|
||||
currentPage = 1;
|
||||
}}
|
||||
>
|
||||
<Checkbox
|
||||
state={includeContent ? 'checked' : 'unchecked'}
|
||||
on:change={(e) => {
|
||||
includeContent = e.detail === 'checked';
|
||||
currentPage = 1;
|
||||
}}
|
||||
/>
|
||||
{$i18n.t('File content')}
|
||||
|
|
@ -1472,6 +1474,7 @@
|
|||
} else {
|
||||
delete localStorage.workspaceViewOption;
|
||||
}
|
||||
currentPage = 1;
|
||||
}}
|
||||
/>
|
||||
|
||||
|
|
|
|||
|
|
@ -564,6 +564,7 @@
|
|||
align="end"
|
||||
onChange={async (value) => {
|
||||
localStorage.workspaceViewOption = value;
|
||||
page = 1;
|
||||
await tick();
|
||||
}}
|
||||
/>
|
||||
|
|
@ -575,6 +576,10 @@
|
|||
items={tags.map((tag) => {
|
||||
return { value: tag, label: tag };
|
||||
})}
|
||||
onChange={async () => {
|
||||
page = 1;
|
||||
await tick();
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -497,6 +497,10 @@
|
|||
bind:value={selectedTag}
|
||||
align="end"
|
||||
items={tags.map((tag) => ({ value: tag, label: tag }))}
|
||||
onChange={async () => {
|
||||
page = 1;
|
||||
await tick();
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue