mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
17 lines
496 B
JavaScript
17 lines
496 B
JavaScript
import BasicWidget from "../basic_widget.js";
|
|
|
|
const TPL = `
|
|
<button type="button" class="action-button d-sm-none d-md-none d-lg-none d-xl-none" aria-label="Close" style="padding-top: 10px;">
|
|
<span aria-hidden="true">×</span>
|
|
</button>`;
|
|
|
|
class CloseDetailButtonWidget extends BasicWidget {
|
|
doRender() {
|
|
this.$widget = $(TPL);
|
|
|
|
this.$widget.on('click', () => this.triggerCommand('setActiveScreen', {screen:'tree'}));
|
|
}
|
|
}
|
|
|
|
export default CloseDetailButtonWidget;
|