From c1714f517df24c2fb8b980e63c52b41210c601d5 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Sat, 4 Nov 2023 21:40:58 +0000 Subject: [PATCH] refactor(endpoint-posts): remove deprecated preview data attributes --- packages/endpoint-share/views/share.njk | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/endpoint-share/views/share.njk b/packages/endpoint-share/views/share.njk index 73b2080b1..ad372950c 100644 --- a/packages/endpoint-share/views/share.njk +++ b/packages/endpoint-share/views/share.njk @@ -1,7 +1,6 @@ {% extends "form.njk" %} {% from "preview/macro.njk" import preview %} -{% set mainControllers = "preview" %} {% block fieldset %} {{ preview({ @@ -30,8 +29,7 @@ value: fieldData("bookmark-of").value or data.url, label: __("share.bookmark-of.label"), attributes: { - "placeholder": "https://", - "data-action": "preview#url" + "placeholder": "https://" }, errorMessage: fieldData("bookmark-of").errorMessage }) }} @@ -40,9 +38,6 @@ name: "name", value: fieldData("name").value, label: __("share.name.label"), - attributes: { - "data-action": "preview#title" - }, errorMessage: fieldData("name").errorMessage }) }} @@ -50,10 +45,7 @@ name: "content", value: content, optional: true, - label: __("share.content.label"), - attributes: { - "data-action": "preview#text" - } + label: __("share.content.label") }) }} {{ input({