mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 06:54:23 +01:00
fix(fs_sync): modal not showing
This commit is contained in:
parent
770281214b
commit
fe6daac979
@ -311,7 +311,7 @@ export default class FileSystemSyncOptions extends OptionsWidget {
|
||||
this.$refreshStatusButton = this.$widget.find(".refresh-status-button");
|
||||
|
||||
// Modal elements
|
||||
this.$mappingModal = this.$widget.find(".mapping-modal");
|
||||
this.$mappingModal = this.$widget.closest(".mapping-modal");
|
||||
this.$modalTitle = this.$mappingModal.find(".modal-title");
|
||||
this.$noteSelector = this.$mappingModal.find(".note-selector");
|
||||
this.$selectedNoteId = this.$mappingModal.find(".selected-note-id");
|
||||
@ -487,6 +487,7 @@ export default class FileSystemSyncOptions extends OptionsWidget {
|
||||
|
||||
private showMappingModal(mapping?: FileSystemMapping) {
|
||||
this.currentEditingMappingId = mapping?.mappingId || null;
|
||||
console.log("Showing mapping modal", this.currentEditingMappingId, this.$mappingModal);
|
||||
|
||||
if (mapping) {
|
||||
this.$modalTitle.text("Edit File System Mapping");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user