Skip to content

Commit b257756

Browse files
Feature: Set the URL field as required and focus on it (#2500)
* Feature: Set the URL field as required and focus on it * Added mandatory asterix to webhook url label --------- Co-authored-by: Nathaniel Nunes <[email protected]>
1 parent 5ad8fe3 commit b257756

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/packages/webhook/workspace/webhook/views/webhook-details-workspace-view.element.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { UMB_WEBHOOK_WORKSPACE_CONTEXT } from '../webhook-workspace.context-toke
22
import type { UmbInputWebhookHeadersElement } from '../../../components/input-webhook-headers.element.js';
33
import type { UmbInputWebhookEventsElement } from '../../../components/input-webhook-events.element.js';
44
import { css, customElement, html, state, nothing } from '@umbraco-cms/backoffice/external/lit';
5-
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
5+
import { UmbLitElement, umbFocus } from '@umbraco-cms/backoffice/lit-element';
66
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
77
import type { UmbChangeEvent } from '@umbraco-cms/backoffice/event';
88
import type { UmbInputDocumentTypeElement } from '@umbraco-cms/backoffice/document-type';
@@ -110,9 +110,15 @@ export class UmbWebhookDetailsWorkspaceViewElement extends UmbLitElement impleme
110110
return html`
111111
<uui-box>
112112
<umb-property-layout
113+
mandatory
113114
label=${this.localize.term('webhooks_url')}
114115
description=${this.localize.term('webhooks_urlDescription')}>
115-
<uui-input @input=${this.#onUrlChange} .value=${this._webhook.url} slot="editor"></uui-input>
116+
<uui-input
117+
@input=${this.#onUrlChange}
118+
.value=${this._webhook.url}
119+
slot="editor"
120+
required="true"
121+
${umbFocus()}></uui-input>
116122
</umb-property-layout>
117123
<umb-property-layout
118124
label=${this.localize.term('webhooks_events')}

0 commit comments

Comments
 (0)