From 122baa837d8642817d62edbe8dd023be9d39dcc1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 13 Oct 2019 05:28:03 +0300 Subject: [PATCH] removed a non-necessary feature... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 1 - ui (gen4)/features/virtual-blocks.js | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index bc36ed04..fdce4a96 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -2258,7 +2258,6 @@ var FileSystemWriterActions = actions.Actions({ logger && logger.emit('queued', to) var res = include_virtual - && !img.do_not_export && !fse.existsSync(to) && outputFile(to, img.text || '') diff --git a/ui (gen4)/features/virtual-blocks.js b/ui (gen4)/features/virtual-blocks.js index f6c4130a..77c04a52 100644 --- a/ui (gen4)/features/virtual-blocks.js +++ b/ui (gen4)/features/virtual-blocks.js @@ -28,9 +28,6 @@ var browse = require('lib/widget/browse') // // Block text (optional)... // text: , // -// // if true this block will not be exported... -// do_not_export: , -// // // optional image attributes... // // for more info see: imagegrid/images.js // ... @@ -262,7 +259,7 @@ var VirtualBlocksEditUIActions = actions.Actions({ // XXX this is a good candidate for inlineing (browse2) // XXX should we also add a preview (preview constructor from metadata)??? // XXX should we do a sanity check for image type??? - editVirtualBlockText: ['Virtual block/$Edit text...', + editVirtualBlockText: ['Virtual block/$Edit...', { browseMode: function(){ return (this.image || {}).type != 'virtual' && 'disabled' }, }, widgets.makeUIDialog(function(gid){