]> cat aescling's git repositories - mastodon.git/commitdiff
satisfy eslint
authorSurinna Curtis <ekiru.0@gmail.com>
Sat, 9 Sep 2017 10:25:33 +0000 (05:25 -0500)
committerSurinna Curtis <ekiru.0@gmail.com>
Thu, 14 Sep 2017 02:47:30 +0000 (21:47 -0500)
app/javascript/mastodon/components/account.js
app/javascript/mastodon/containers/account_container.js
app/javascript/mastodon/features/ui/components/mute_modal.js

index 5a0c1c1c82a942ed985d26e4db4b4b7fb1c44fb8..1b8b107e98b1653911935217c8a8d8cc0eababb5 100644 (file)
@@ -48,7 +48,7 @@ export default class Account extends ImmutablePureComponent {
   }
 
   handleUnmuteNotifications = () => {
-    this.props.onMuteNotifications(this.props.account, false);    
+    this.props.onMuteNotifications(this.props.account, false);
   }
 
   render () {
@@ -84,11 +84,7 @@ export default class Account extends ImmutablePureComponent {
         if (muting.get('notifications')) {
           hidingNotificationsButton = <IconButton active icon='bell' title={intl.formatMessage(messages.unmute_notifications, { name: account.get('username')  })} onClick={this.handleUnmuteNotifications} />;
         } else {
-<<<<<<< HEAD
-          hidingNotificationsButton = <IconButton active icon='bell' title={intl.formatMessage(messages.mute_notifications, { name: account.get('username')  })} onClick={this.handleMuteNotifications} />
-=======
           hidingNotificationsButton = <IconButton active icon='bell-slash' title={intl.formatMessage(messages.mute_notifications, { name: account.get('username')  })} onClick={this.handleMuteNotifications} />;
->>>>>>> 917b2d5f... fixup swapped icons
         }
         buttons = (
           <div>
index 79e9e6e9827d36502bf8efa05c812877a37685c8..b4b8f4be276dffbe6414e9ad22feb80938b9df15 100644 (file)
@@ -63,9 +63,10 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
     }
   },
 
+
   onMuteNotifications (account, notifications) {
     dispatch(muteAccount(account.get('id'), notifications));
-  }
+  },
 });
 
 export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account));
index ef7c13f0a7631be26da81f637571d586b920a548..b5e83bb71d21a3b5f28d9c74454ddbe4ad74cc5b 100644 (file)
@@ -81,9 +81,9 @@ export default class MuteModal extends React.PureComponent {
             />
           </p>
           <p>
-            <label>
+            <label htmlFor='mute-modal__hide-notifications-checkbox'>
               <FormattedMessage id='mute_modal.hide_notifications' defaultMessage='Hide notifications from this user?' />
-              <input type='checkbox' checked={notifications} onChange={this.toggleNotifications} />
+              <input id='mute-modal__hide-notifications-checkbox' type='checkbox' checked={notifications} onChange={this.toggleNotifications} />
             </label>
           </p>
         </div>
This page took 0.027967 seconds and 3 git commands to generate.