diff --git a/ghost/admin/app/components/settings/signup-form-embed.hbs b/ghost/admin/app/components/settings/signup-form-embed.hbs index 71a753190b..b556124d88 100644 --- a/ghost/admin/app/components/settings/signup-form-embed.hbs +++ b/ghost/admin/app/components/settings/signup-form-embed.hbs @@ -1,102 +1,12 @@ -
-

Growth

-
-
-
-
-

Embeddable signup form

-

Grow your audience from anywhere on the web

-
- -
-
- {{#if (feature "tipsAndDonations")}} -
-
-
-

Enable tips & donations

-

Give your audience a one-time way to support your work

-
-
- -
-
-
- {{#liquid-if true}} -
- -
-
- -
- -
- -
-
-
- - - - - - {{svg-jar "arrow-down-small"}} - - -
-
-
- - - -
- - -
-
-
-

Use this link to send your audience to your Stripe checkout page

-
-
- {{/liquid-if}} -
+
+
+
+

Embeddable signup form

+

Grow your audience from anywhere on the web

- {{/if}} +
-
\ No newline at end of file + \ No newline at end of file diff --git a/ghost/admin/app/components/settings/signup-form-embed.js b/ghost/admin/app/components/settings/signup-form-embed.js index 4f3c74ec96..e04f827e01 100644 --- a/ghost/admin/app/components/settings/signup-form-embed.js +++ b/ghost/admin/app/components/settings/signup-form-embed.js @@ -2,24 +2,13 @@ import Component from '@glimmer/component'; import SignupFormEmbedModal from '../../components/modals/settings/signup-form-embed'; import {action} from '@ember/object'; import {inject as service} from '@ember/service'; -import {task, timeout} from 'ember-concurrency'; -import {tracked} from '@glimmer/tracking'; export default class SignupFormEmbed extends Component { @service modals; @service settings; - @tracked currency = 'USD'; - @tracked allCurrencies = ['USD', 'RSD']; - @action open() { this.modals.open(SignupFormEmbedModal, {}, {}); } - - @task - *copyTipsAndDonationsLink() { - yield timeout(10); - return true; - } } diff --git a/ghost/admin/app/components/settings/tips-and-donations.hbs b/ghost/admin/app/components/settings/tips-and-donations.hbs new file mode 100644 index 0000000000..c036b08931 --- /dev/null +++ b/ghost/admin/app/components/settings/tips-and-donations.hbs @@ -0,0 +1,75 @@ +
+
+
+

Tips & donations

+

Give your audience a one-time way to support your work

+
+ +
+
+ {{#liquid-if this.tipsAndDonationsOpen}} +
+ +
+
+ +
+ +
+ +
+
+
+ + + + + + {{svg-jar "arrow-down-small"}} + + +
+
+
+ + + +
+ + +
+
+
+

Use this link to send your audience to your Stripe checkout page

+
+
+ {{/liquid-if}} +
+
\ No newline at end of file diff --git a/ghost/admin/app/components/settings/tips-and-donations.js b/ghost/admin/app/components/settings/tips-and-donations.js new file mode 100644 index 0000000000..9cfa317356 --- /dev/null +++ b/ghost/admin/app/components/settings/tips-and-donations.js @@ -0,0 +1,17 @@ +import Component from '@glimmer/component'; +import {inject as service} from '@ember/service'; +import {task, timeout} from 'ember-concurrency'; +import {tracked} from '@glimmer/tracking'; + +export default class TipsAndDonations extends Component { + @service settings; + + @tracked currency = 'USD'; + @tracked allCurrencies = ['USD', 'RSD']; + + @task + *copyTipsAndDonationsLink() { + yield timeout(10); + return true; + } +} diff --git a/ghost/admin/app/templates/settings/membership.hbs b/ghost/admin/app/templates/settings/membership.hbs index 79e58f9cfd..7c069b2629 100644 --- a/ghost/admin/app/templates/settings/membership.hbs +++ b/ghost/admin/app/templates/settings/membership.hbs @@ -171,8 +171,17 @@ - +
+

Growth

+
+ + {{#if (feature "tipsAndDonations")}} + + {{/if}} +
+
+ {{#if this.showPortalSettings}}