trilium/src/public/javascripts/widgets/protected_note_switch.js

22 lines
662 B
JavaScript
Raw Normal View History

2020-01-19 20:19:40 +08:00
import BasicWidget from "./basic_widget.js";
const TPL = `
<div class="btn-group btn-group-xs">
<button type="button"
class="btn btn-sm icon-button bx bx-check-shield protect-button"
title="Protected note can be viewed and edited only after entering password">
</button>
<button type="button"
class="btn btn-sm icon-button bx bx-shield unprotect-button"
title="Not protected note can be viewed without entering password">
</button>
</div>`;
export default class ProtectedNoteSwitchWidget extends BasicWidget {
doRender() {
this.$widget = $(TPL);
return this.$widget;
}
}