This commit is contained in:
@@ -37,7 +37,9 @@ export class UmbTemplatingInsertMenuElement extends UmbLitElement {
|
||||
|
||||
switch (type) {
|
||||
case CodeSnippetType.partialView: {
|
||||
this.value = getInsertPartialSnippet(value);
|
||||
const regex = /^%2F|%25dot%25cshtml$/g;
|
||||
const prettyPath = value.replace(regex, '').replace(/%2F/g, '/');
|
||||
this.value = getInsertPartialSnippet(prettyPath);
|
||||
this.#dispatchInsertEvent();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -53,10 +53,8 @@ export class UmbTemplatingItemPickerModalElement extends UmbModalBaseElement<
|
||||
|
||||
if (!value) return;
|
||||
|
||||
const regex = /^%2F|%25dot%25cshtml$/g;
|
||||
const prettyPath = value.replace(regex, '').replace(/%2F/g, '/');
|
||||
this.value = {
|
||||
value: prettyPath,
|
||||
value: value,
|
||||
type: CodeSnippetType.partialView,
|
||||
};
|
||||
this.modalContext?.submit();
|
||||
|
||||
Reference in New Issue
Block a user