From 9f9a70802098e41e6bdc8ec28e0bbddb3b770fac Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 17 Apr 2023 14:26:33 +0200 Subject: [PATCH] Fix issue with new templates --- www/common/common-ui-elements.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 9a26505d6..ac3fa4748 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2591,14 +2591,12 @@ define([ icon: h('span.cptools.cptools-new-template') }); }*/ - if (!privateData.newTemplate) { - allData.unshift({ - name: Messages.creation_noTemplate, - id: 0, - //icon: h('span.fa.fa-file') - icon: UI.getFileIcon({type: type}) - }); - } + allData.unshift({ + name: Messages.creation_noTemplate, + id: 0, + //icon: h('span.fa.fa-file') + icon: UI.getFileIcon({type: type}) + }); var redraw = function (index) { if (index < 0) { i = 0; } else if (index > allData.length - 1) { return; }