I want to hide the preview button that opens the side widget with the comments and preview image. Can this be done? I tried like this but if the user clicks on trash, the trash removal icon appears which is fine but then when clicking on any other folder, the preview button returns…
class CustomTopBar extends docManager.views.topbar {
config() {
// get JSON object with configuration
const ui = super.config();
ui.cols[4].hidden = true;
return ui;
}
init() {
// call default logic
super.init();
}
}