Skip to content

Commit

Permalink
refactor(endpoint-posts): remove deprecated preview data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Nov 4, 2023
1 parent 3d1d850 commit 0dc9373
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/endpoint-share/views/share.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends "form.njk" %}

{% from "share-preview/macro.njk" import sharePreview %}
{% set mainControllers = "share-preview" %}

{% block fieldset %}
{{ sharePreview({
Expand Down Expand Up @@ -30,8 +29,7 @@
value: fieldData("bookmark-of").value or data.url,
label: __("share.bookmark-of.label"),
attributes: {
"placeholder": "https://",
"data-action": "share-preview#url"
"placeholder": "https://"
},
errorMessage: fieldData("bookmark-of").errorMessage
}) }}
Expand All @@ -40,20 +38,14 @@
name: "name",
value: fieldData("name").value,
label: __("share.name.label"),
attributes: {
"data-action": "share-preview#title"
},
errorMessage: fieldData("name").errorMessage
}) }}

{{ textarea({
name: "content",
value: content,
optional: true,
label: __("share.content.label"),
attributes: {
"data-action": "share-preview#text"
}
label: __("share.content.label")
}) }}

{{ input({
Expand Down

0 comments on commit 0dc9373

Please sign in to comment.