From 0356c317c9f6823c4a03c5459d05ec607ee36ea8 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sat, 11 Feb 2023 18:10:02 -0600 Subject: [PATCH] fix(gui): get tile orders from server params --- api/params.json | 5 ++++- gui/src/components/tab/Inpaint.tsx | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/api/params.json b/api/params.json index f1a9824d..7e0e36ac 100644 --- a/api/params.json +++ b/api/params.json @@ -116,7 +116,10 @@ }, "tileOrder": { "default": "spiral", - "keys": [] + "keys": [ + "grid", + "spiral" + ] }, "top": { "default": 0, diff --git a/gui/src/components/tab/Inpaint.tsx b/gui/src/components/tab/Inpaint.tsx index 2098857d..e90a8b24 100644 --- a/gui/src/components/tab/Inpaint.tsx +++ b/gui/src/components/tab/Inpaint.tsx @@ -161,7 +161,11 @@ export function Inpaint() { tileOrder: e.target.value, }); }} - >{['grid', 'kernel', 'spiral'].map((name) => {name})} + > + {params.tileOrder.keys.map((name) => + {name.toLocaleUpperCase()}) + } +