Skip to content

Commit bb42801

Browse files
authored
Notification settings: move jabber setup section to bottom group of toggles (#103264)
* move jabber setup section to bottom group of toggles * copy edit and link for inline support
1 parent 49dcba6 commit bb42801

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

client/components/inline-support-link/context-links.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ const contextLinks = {
187187
link: 'https://wordpress.com/support/invite-people/',
188188
post_id: 1221,
189189
},
190+
'jabber-subscription-updates': {
191+
link: 'https://wordpress.com/support/jabber',
192+
post_id: 3228,
193+
},
190194
'manage-profile': {
191195
link: 'https://wordpress.com/support/manage-my-profile/',
192196
post_id: 19775,

client/me/notification-settings/reader-subscriptions/index.jsx

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import FormLegend from 'calypso/components/forms/form-legend';
1111
import FormSectionHeading from 'calypso/components/forms/form-section-heading';
1212
import FormSelect from 'calypso/components/forms/form-select';
1313
import FormSettingExplanation from 'calypso/components/forms/form-setting-explanation';
14+
import InlineSupportLink from 'calypso/components/inline-support-link';
1415
import { withLocalizedMoment } from 'calypso/components/localized-moment';
1516
import Main from 'calypso/components/main';
1617
import NavigationHeader from 'calypso/components/navigation-header';
@@ -155,23 +156,6 @@ class NotificationSubscriptions extends Component {
155156
</FormSelect>
156157
</FormFieldset>
157158

158-
<FormFieldset>
159-
<FormLegend>{ this.props.translate( 'Jabber subscription delivery' ) }</FormLegend>
160-
<FormLabel>
161-
<FormCheckbox
162-
checked={ this.props.getSetting( 'subscription_delivery_jabber_default' ) }
163-
disabled={ this.props.getDisabledState() }
164-
id="subscription_delivery_jabber_default"
165-
name="subscription_delivery_jabber_default"
166-
onChange={ this.props.toggleSetting }
167-
onClick={ this.handleCheckboxEvent( 'Notification delivery by Jabber' ) }
168-
/>
169-
<span>
170-
{ this.props.translate( 'Default delivery via Jabber instant message' ) }
171-
</span>
172-
</FormLabel>
173-
</FormFieldset>
174-
175159
<FormFieldset>
176160
<FormLabel htmlFor="subscription_delivery_mail_option">
177161
{ this.props.translate( 'Email delivery format' ) }
@@ -240,6 +224,27 @@ class NotificationSubscriptions extends Component {
240224
</FormSettingExplanation>
241225
</FormFieldset>
242226

227+
<FormFieldset>
228+
<FormLegend>{ this.props.translate( 'Jabber subscription delivery' ) }</FormLegend>
229+
<FormLabel>
230+
<FormCheckbox
231+
checked={ this.props.getSetting( 'subscription_delivery_jabber_default' ) }
232+
disabled={ this.props.getDisabledState() }
233+
id="subscription_delivery_jabber_default"
234+
name="subscription_delivery_jabber_default"
235+
onChange={ this.props.toggleSetting }
236+
onClick={ this.handleCheckboxEvent( 'Notification delivery by Jabber' ) }
237+
/>
238+
<span>
239+
{ this.props.translate( 'Receive subscription updates via instant message.' ) }{ ' ' }
240+
<InlineSupportLink
241+
supportContext="jabber-subscription-updates"
242+
showIcon={ false }
243+
/>
244+
</span>
245+
</FormLabel>
246+
</FormFieldset>
247+
243248
<FormFieldset>
244249
<FormLegend>{ this.props.translate( 'Pause emails' ) }</FormLegend>
245250
<FormLabel>

0 commit comments

Comments
 (0)