2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

Template Editor Improvements ()

* add unmount hook and context to report editor ui feature

* Fix tests

* Update pui_printing.spec.ts

* Update pui_printing.spec.ts

* try fix tests

* retrigger ci

* remove debug messages
This commit is contained in:
Lukas
2025-04-02 00:01:12 +02:00
committed by GitHub
parent 6a964a4e2b
commit ba703cf58a
10 changed files with 30 additions and 22 deletions
src
backend
InvenTree
plugin
samples
integration
static
plugins
frontend

@ -175,7 +175,7 @@ class SampleUserInterfacePlugin(SettingsMixin, UserInterfaceMixin, InvenTreePlug
{
'key': 'sample-template-editor',
'title': 'Sample Template Editor',
'icon': 'keywords',
'icon': 'ti:tags:outline',
'source': self.plugin_static_file(
'sample_template.js:getTemplateEditor'
),
@ -190,7 +190,7 @@ class SampleUserInterfacePlugin(SettingsMixin, UserInterfaceMixin, InvenTreePlug
{
'key': 'sample-template-preview',
'title': 'Sample Template Preview',
'icon': 'category',
'icon': 'ti:category:outline',
'source': self.plugin_static_file(
'sample_preview.js:getTemplatePreview'
),

@ -4,7 +4,7 @@ export function getTemplatePreview({ featureContext, pluginContext }) {
featureContext.registerHandlers({
updatePreview: (...args) => {
console.log("updatePreview", args);
console.log("updatePreview", args[0]);
}
});