0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

🎨 Added newsletter preference page link in portal settings

- adds data attribute and link to member's newsletter preference page in portal to portal links table in settings
This commit is contained in:
Rishabh 2023-03-05 17:34:12 +05:30
parent d6a1d98aca
commit 38b356a748
2 changed files with 33 additions and 0 deletions

View file

@ -559,3 +559,4 @@ add|ember-template-lint|no-action|34|16|34|16|5b7ad6ecbae8b6379d42a3c7f343485cf7
add|ember-template-lint|require-valid-alt-text|3|44|3|44|a7f0566c430150bae4153e0dfb489a218bdeb8a4|1675296000000|1685660400000|1690844400000|lib/koenig-editor/addon/components/koenig-card-embed/nft.hbs
add|ember-template-lint|require-valid-alt-text|8|20|8|20|9d0c591086dc9139ff38a7b385c3367a83438786|1675296000000|1685660400000|1690844400000|lib/koenig-editor/addon/components/koenig-card-embed/nft.hbs
add|ember-template-lint|require-input-label|10|12|10|12|8c3c0ea315ff4da828363989a45fa11256a78796|1675296000000|1685660400000|1690844400000|lib/koenig-editor/addon/components/koenig-card-image/selector-tenor.hbs
add|ember-template-lint|no-action|465|46|465|46|f2f0f3f512f141fdd821333c873f5052813bb491|1677974400000|1688342400000|1693526400000|app/components/gh-portal-links.hbs

View file

@ -442,6 +442,38 @@
</div>
</td>
</tr>
<tr>
<td class='pagename'>Account/Newsletters</td>
<td class='page-url'>
<div class="gh-portal-page-url-container">
{{#if this.isLink}}
<input class="gh-input page-url-field"
type="text"
data-test-input="portal-tier-link-account-newsletters"
value="{{this.siteUrl}}/#/portal/account/newsletters"
disabled="true"
aria-label="Account/Newsletters Portal link">
{{else}}
<input class="gh-input page-url-field"
type="text"
data-test-input="portal-tier-data-attr-account-newsletters"
value='data-portal="account/newsletters"'
disabled="true"
aria-label="Account/Newsletters Portal data attribute">
{{/if}}
<button
type="button" {{action (perform this.copyStaticLink "account/newsletters")}} class="gh-portal-setting-copy"
data-test-button="copy-url-attr"
>
{{#if (and this.copyStaticLink.isRunning (eq this.copiedPrice "account/newsletters"))}}
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
{{else}}
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
{{/if}}
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>