Support Gitea configuration and safe Catalog Studio furniture completion
This commit is contained in:
1 parent
26f071117b
commit
9f791ba284
22 files changed
+1120
-166
No files matched your search
@@ -692,6 +692,7 @@ export function StudioClient({
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
repairExisting: true,
|
||||
id: item.id,
|
||||
classname: item.classname,
|
||||
name: item.name,
|
||||
@@ -779,6 +780,7 @@ export function StudioClient({
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
sourceId: activeSource || undefined,
|
||||
repairExisting: true,
|
||||
items: toImport.map((i) => ({
|
||||
id: i.id,
|
||||
classname: i.classname,
|
||||
@@ -2323,6 +2325,16 @@ export function StudioClient({
|
||||
</Button>
|
||||
) : (
|
||||
<div className="space-y-2">
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full gap-1.5"
|
||||
disabled={importingId !== null}
|
||||
onClick={() =>
|
||||
setReview({ items: [detail], single: true })
|
||||
}
|
||||
>
|
||||
Complete missing data
|
||||
</Button>
|
||||
{!detail.nitroExists && (
|
||||
<>
|
||||
<p className="rounded-md border border-[var(--admin-warning)]/30 bg-[var(--admin-warning)]/10 p-2 text-[0.65rem] text-[var(--admin-warning)]">
|
||||
|
||||
Reference in new issue
Block a user