mirror of
https://github.com/zadam/trilium.git
synced 2026-02-20 12:44:25 +01:00
chore(client/active_badges): disable toggle for web view & render note
This commit is contained in:
parent
a6e596a5e3
commit
7a534c3ea7
@ -231,11 +231,9 @@ function useActiveContentInfo(note: FNote | null | undefined) {
|
||||
if (note.type === "render") {
|
||||
type = "renderNote";
|
||||
isEnabled = note.hasRelation("renderNote");
|
||||
canToggleEnabled = note.hasRelation("renderNote") || note.hasRelation("disabled:renderNote");
|
||||
} else if (note.type === "webView") {
|
||||
type = "webView";
|
||||
isEnabled = note.hasLabel("webViewSrc");
|
||||
canToggleEnabled = note.hasLabelOrDisabled("webViewSrc");
|
||||
} else if (note.type === "code" && note.mime === "application/javascript;env=backend") {
|
||||
type = "backendScript";
|
||||
for (const backendLabel of [ "run", "customRequestHandler", "customResourceProvider" ]) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user