From 494a063665b7bc9d4452843423df276b0eac6b81 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sun, 24 Aug 2025 11:03:16 +0200 Subject: [PATCH] small form edits --- app/src/pages/MapContainer.tsx | 2 +- app/vite.config.ts | 2 +- .../Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx | 1 + lib/src/types/ItemType.d.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx index 9818286e..bb819103 100644 --- a/app/src/pages/MapContainer.tsx +++ b/app/src/pages/MapContainer.tsx @@ -106,7 +106,7 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) { layer.markerDefaultColor2 ? layer.markerDefaultColor2 : 'RGBA(35, 31, 32, 0.2)' } itemType={layer.itemType} - customEditLink='/edit-item' + customEditLink={layer.itemType.small_form_edit ? undefined : '/edit-item'} customEditParameter='id' public_edit_items={layer.public_edit_items} listed={layer.listed} diff --git a/app/vite.config.ts b/app/vite.config.ts index 2be6ed48..a5dec8e8 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -11,7 +11,7 @@ const __dirname = path.dirname(new URL(import.meta.url).pathname) export default defineConfig({ server: { host: true, - port: 5174, + port: 5175, /** * https: { * key: fs.readFileSync(path.resolve(__dirname, 'localhost-key.pem')), diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx index e56153f6..49447c18 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.tsx @@ -22,6 +22,7 @@ export const PopupTextAreaInput = ({ dataField={dataField} placeholder={placeholder} inputStyle={style} + required={false} > ) } diff --git a/lib/src/types/ItemType.d.ts b/lib/src/types/ItemType.d.ts index df56aff7..b7801ef7 100644 --- a/lib/src/types/ItemType.d.ts +++ b/lib/src/types/ItemType.d.ts @@ -16,4 +16,5 @@ export interface ItemType { relations: boolean template: string questlog: boolean + small_form_edit?: boolean }