mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
feat(furni-editor): 'Import from Habbo' button to fetch official texts
useFurniEditor gains importText(id) + importResult (10049 round-trip); the edit view shows an 'Import from Habbo' button that fills Display Name/ Description with the official text for review before Save (nonce-guarded, classname-matched), with an inline result note.
This commit is contained in:
@@ -19,7 +19,7 @@ export const FurniEditorView: FC<{}> = () =>
|
||||
selectedItem, setSelectedItem, furniDataEntry,
|
||||
interactions,
|
||||
searchItems, loadDetail, loadBySpriteId, updateItem, deleteItem, loadInteractions,
|
||||
updateFurnidata, revertFurnidata
|
||||
updateFurnidata, revertFurnidata, importText, importResult
|
||||
} = useFurniEditor();
|
||||
|
||||
const isMod = useHasPermission('acc_catalogfurni');
|
||||
@@ -158,6 +158,8 @@ export const FurniEditorView: FC<{}> = () =>
|
||||
onBack={ handleBack }
|
||||
onUpdateFurnidata={ updateFurnidata }
|
||||
onRevertFurnidata={ revertFurnidata }
|
||||
onImportText={ importText }
|
||||
importResult={ importResult }
|
||||
/>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user