From 719f21111f55d5f971c43bc4b69fca47ef4e3428 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 27 Mar 2024 16:41:56 +0100 Subject: [PATCH] Fix missing entries in debug app file menu --- www/debug/inner.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/debug/inner.js b/www/debug/inner.js index ab8fdaf8e..80c7c4a4a 100644 --- a/www/debug/inner.js +++ b/www/debug/inner.js @@ -18,6 +18,7 @@ define([ '/common/common-realtime.js', '/customize/messages.js', '/customize/application_config.js', + '/common/common-ui-elements.js', '/debug/chainpad.dist.js', 'css!/components/bootstrap/dist/css/bootstrap.min.css', @@ -39,6 +40,7 @@ define([ CommonRealtime, Messages, AppConfig, + UIElements, ChainWalk) { var APP = window.APP = { @@ -701,7 +703,8 @@ define([ }; var $hist = common.createButton('history', true, {histConfig: histConfig}); $hist.addClass('cp-hidden-if-readonly'); - toolbar.$drawer.append($hist); + var $histEntry = UIElements.getEntryFromButton($hist); + toolbar.$drawer.append($histEntry); var $content = common.createButton(null, true, { icon: 'fa-question', @@ -710,7 +713,9 @@ define([ id: 'cp-app-debug-get-content' }); $content.click(getContent); - toolbar.$drawer.append($content); + var $contentEntry = UIElements.getEntryFromButton($content); + console.error($contentEntry); + toolbar.$drawer.append($contentEntry); }; config.onReady = function (info) {