Skip to content

Commit 5d33b35

Browse files
authored
Merge pull request #7050 from BatJan/patch-995096
Fix code alignment
2 parents f6eb872 + cda3a8e commit 5d33b35

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

15/umbraco-cms/tutorials/creating-a-property-editor/integrating-context-with-a-property-editor.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -142,25 +142,25 @@ constructor() {
142142
...
143143
144144
const trimmed = (this.value as string).substring(0, this._maxChars);
145-
const modalHandler = this.#modalManagerContext?.open(this, UMB_CONFIRM_MODAL,
146-
{
147-
data: {
148-
headline: `Trim text`,
149-
content: `Do you want to trim the text to "${trimmed}"?`,
150-
color: "danger",
151-
confirmLabel: "Trim",
152-
}
145+
const modalHandler = this.#modalManagerContext?.open(this, UMB_CONFIRM_MODAL,
146+
{
147+
data: {
148+
headline: `Trim text`,
149+
content: `Do you want to trim the text to "${trimmed}"?`,
150+
color: "danger",
151+
confirmLabel: "Trim",
153152
}
154-
);
155-
modalHandler?.onSubmit().then(() => {
156-
this.value = trimmed;
157-
this.#dispatchChangeEvent();
158-
const data: UmbNotificationDefaultData = {
159-
headline: `Text trimmed`,
160-
message: `You trimmed the text!`,
161-
};
162-
this.#notificationContext?.peek("positive", { data });
163-
}, null);
153+
}
154+
);
155+
modalHandler?.onSubmit().then(() => {
156+
this.value = trimmed;
157+
this.#dispatchChangeEvent();
158+
const data: UmbNotificationDefaultData = {
159+
headline: `Text trimmed`,
160+
message: `You trimmed the text!`,
161+
};
162+
this.#notificationContext?.peek("positive", { data });
163+
}, null);
164164
}
165165
```
166166
{% endcode %}

0 commit comments

Comments
 (0)