extracted widgets from note title

This commit is contained in:
zadam
2020-01-19 13:19:40 +01:00
parent 9f1e777e6d
commit 6de4914ea6
10 changed files with 115 additions and 78 deletions

View File

@@ -0,0 +1,22 @@
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;
}
}