From b25775640efcb645bf3741e53083f1ff2913c1fd Mon Sep 17 00:00:00 2001 From: Nathaniel Nunes Date: Mon, 4 Nov 2024 18:37:26 +0530 Subject: [PATCH] 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 --- .../views/webhook-details-workspace-view.element.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/packages/webhook/workspace/webhook/views/webhook-details-workspace-view.element.ts b/src/packages/webhook/workspace/webhook/views/webhook-details-workspace-view.element.ts index cab305752c..c727415667 100644 --- a/src/packages/webhook/workspace/webhook/views/webhook-details-workspace-view.element.ts +++ b/src/packages/webhook/workspace/webhook/views/webhook-details-workspace-view.element.ts @@ -2,7 +2,7 @@ import { UMB_WEBHOOK_WORKSPACE_CONTEXT } from '../webhook-workspace.context-toke import type { UmbInputWebhookHeadersElement } from '../../../components/input-webhook-headers.element.js'; import type { UmbInputWebhookEventsElement } from '../../../components/input-webhook-events.element.js'; import { css, customElement, html, state, nothing } from '@umbraco-cms/backoffice/external/lit'; -import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'; +import { UmbLitElement, umbFocus } from '@umbraco-cms/backoffice/lit-element'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import type { UmbInputDocumentTypeElement } from '@umbraco-cms/backoffice/document-type'; @@ -110,9 +110,15 @@ export class UmbWebhookDetailsWorkspaceViewElement extends UmbLitElement impleme return html` - +