cleanup
This commit is contained in:
@@ -47,7 +47,6 @@ export class UmbTemplatingInsertMenuElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
async determineInsertValue(modalResult: ChooseInsertTypeModalResult) {
|
||||
debugger;
|
||||
const { type, value } = modalResult;
|
||||
|
||||
switch (type) {
|
||||
@@ -92,7 +91,6 @@ export class UmbTemplatingInsertMenuElement extends UmbLitElement {
|
||||
hidePartialView: this.hidePartialView,
|
||||
});
|
||||
this.#openModal?.onSubmit().then((closedModal: ChooseInsertTypeModalResult) => {
|
||||
debugger;
|
||||
this.determineInsertValue(closedModal);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -77,7 +77,6 @@ export default class UmbChooseInsertTypeModalElement extends UmbModalBaseElement
|
||||
this.#openModal = this._modalContext?.open(UMB_DICTIONARY_ITEM_PICKER_MODAL, {pickableFilter: item => item.id !== null});
|
||||
this.#openModal?.onSubmit().then((dictionaryItemPickerModalResult) => {
|
||||
if (dictionaryItemPickerModalResult)
|
||||
debugger;
|
||||
this.modalHandler?.submit({ value: dictionaryItemPickerModalResult, type: CodeSnippetType.dictionaryItem });
|
||||
});
|
||||
}
|
||||
|
||||
@@ -75,7 +75,6 @@ export class UmbTemplateWorkspaceEditElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
#insertSnippet(event: Event) {
|
||||
debugger;
|
||||
const target = event.target as UmbTemplatingInsertMenuElement;
|
||||
const value = target.value as string;
|
||||
this._codeEditor?.insert(value);
|
||||
|
||||
Reference in New Issue
Block a user