From ff53da1554c50154ffca5af545f9318375e07a04 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Oct 2019 16:52:09 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/virtual-blocks.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/virtual-blocks.js b/ui (gen4)/features/virtual-blocks.js index c9d5015e..2da9e232 100644 --- a/ui (gen4)/features/virtual-blocks.js +++ b/ui (gen4)/features/virtual-blocks.js @@ -414,11 +414,19 @@ var VirtualBlocksEditUIActions = actions.Actions({ .close(function(){ that.refresh(gid) }) })], - // XXX virtual block templates... + // virtual block templates... + // // XXX should these be loaded as a ribbon/collection??? // ...a collection seems to have all the needed functionality - // but there are still quiestions: - // - stored globally (config), locally (index) or something in the middle (collection)? + // but there are still questions: + // - stored globally (config), locally (index) or something + // in the middle (collection)? + // ...on the other hand a pure collection is a bad match here as it + // necessitates a context change out of the user context and back + // which is a really bad thing... + // ...this could be done via: + // - dialog w. previews (a-la metadata) + // - floating ribbon (in a dialog) cloneVirtualBlockFromTemplate: ['- Virtual block/Clone from template...', function(){ }],