Fix missing entries in debug app file menu

This commit is contained in:
yflory 2024-03-27 16:41:56 +01:00
parent 90d99e4317
commit 719f21111f
1 changed files with 7 additions and 2 deletions

View File

@ -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) {