mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
added options to disable auto-opening of promoted attributes and edited notes ribbon tabs, closes #4151
This commit is contained in:
@@ -4,6 +4,7 @@ import treeService from "../../services/tree.js";
|
||||
import noteAutocompleteService from "../../services/note_autocomplete.js";
|
||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
||||
import attributeService from "../../services/attributes.js";
|
||||
import options from "../../services/options.js";
|
||||
|
||||
const TPL = `
|
||||
<div>
|
||||
@@ -62,7 +63,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
||||
|
||||
return {
|
||||
show: true,
|
||||
activate: true,
|
||||
activate: options.is('promotedAttributesOpenInRibbon'),
|
||||
title: "Promoted Attributes",
|
||||
icon: "bx bx-table"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user