mirror of
https://github.com/OpenListTeam/OpenList-Frontend.git
synced 2026-03-15 03:20:25 +00:00
feat(indexes): add folder choose (#342)
This commit is contained in:
@@ -13,6 +13,7 @@ import { useFetch, useT } from "~/hooks"
|
||||
import { createSignal, Show } from "solid-js"
|
||||
import { Flag, PEmptyResp, PResp, Type } from "~/types"
|
||||
import { formatDate, handleResp, handleRespWithNotifySuccess, r } from "~/utils"
|
||||
import { FolderChooseInput } from "~/components"
|
||||
|
||||
type Progress = {
|
||||
obj_count: number
|
||||
@@ -111,9 +112,9 @@ const Scan = () => {
|
||||
<FormLabel display="flex" alignItems="center">
|
||||
{t("indexes.path_to_scan")}
|
||||
</FormLabel>
|
||||
<Input
|
||||
<FolderChooseInput
|
||||
value={scanPath()}
|
||||
onInput={(e) => setScanPath(e.currentTarget.value)}
|
||||
onChange={(path) => setScanPath(path)}
|
||||
/>
|
||||
<FormLabel display="flex" alignItems="center">
|
||||
{t("indexes.rate_limit")}
|
||||
|
||||
Reference in New Issue
Block a user