mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 16:35:57 +08:00
update the basic function of edit modal
This commit is contained in:
@@ -3,7 +3,6 @@ import {SettingModal} from "./settingModal";
|
||||
import ObsidianSyncNotionPlugin from "../main";
|
||||
import {DatabaseDetails, ObsidianSettingTab} from "./settingTabs";
|
||||
import {i18nConfig} from "../lang/I18n";
|
||||
import {CustomModal} from "./CustomModal";
|
||||
|
||||
export class EditModal extends SettingModal {
|
||||
dataTemp: Record<string, any> = {
|
||||
@@ -244,15 +243,14 @@ export class EditModal extends SettingModal {
|
||||
.setTooltip('Add new property')
|
||||
.setIcon('plus')
|
||||
.onClick(async () => {
|
||||
let customModal = new CustomModal(this.app);
|
||||
|
||||
customModal.onClose = () => {
|
||||
|
||||
this.renderCustomPreview(customModal.properties, nextTabs)
|
||||
this.dataTemp.customPropertiesTemp = customModal.properties;
|
||||
}
|
||||
|
||||
customModal.open();
|
||||
const customTabs = nextTabs.createDiv("custom-tabs");
|
||||
this.createPropertyLine(customTabs);
|
||||
// let customModal = new CustomModal(this.app);
|
||||
// customModal.onClose = () => {
|
||||
// this.renderCustomPreview(customModal.properties, nextTabs)
|
||||
// this.dataTemp.customPropertiesTemp = customModal.properties;
|
||||
// }
|
||||
// customModal.open();
|
||||
});
|
||||
}
|
||||
);
|
||||
@@ -261,6 +259,7 @@ export class EditModal extends SettingModal {
|
||||
}
|
||||
|
||||
|
||||
|
||||
createStyleDiv(className: string, commandValue: boolean = false, parentEl: HTMLElement): HTMLDivElement {
|
||||
return super.createStyleDiv(className, commandValue, parentEl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user