Просмотр исходного кода

apply switch at slackConfiguration

itizawa 6 лет назад
Родитель
Сommit
f3d6e42ff7
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/client/js/components/Admin/Notification/SlackAppConfiguration.jsx

+ 5 - 4
src/client/js/components/Admin/Notification/SlackAppConfiguration.jsx

@@ -80,14 +80,15 @@ class SlackAppConfiguration extends React.Component {
 
 
             <div className="row mb-5">
             <div className="row mb-5">
               <div className="col-xs-offset-3 col-xs-6 text-left">
               <div className="col-xs-offset-3 col-xs-6 text-left">
-                <div className="checkbox checkbox-success">
+                <div className="custom-control custom-switch checkbox-success">
                   <input
                   <input
-                    id="cbPrioritizeIWH"
                     type="checkbox"
                     type="checkbox"
+                    className="custom-control-input"
+                    id="cbPrioritizeIWH"
                     checked={adminNotificationContainer.state.isIncomingWebhookPrioritized}
                     checked={adminNotificationContainer.state.isIncomingWebhookPrioritized}
                     onChange={() => { adminNotificationContainer.switchIsIncomingWebhookPrioritized() }}
                     onChange={() => { adminNotificationContainer.switchIsIncomingWebhookPrioritized() }}
                   />
                   />
-                  <label htmlFor="cbPrioritizeIWH">
+                  <label className="custom-control-label" htmlFor="cbPrioritizeIWH">
                     {t('notification_setting.prioritize_webhook')}
                     {t('notification_setting.prioritize_webhook')}
                   </label>
                   </label>
                 </div>
                 </div>
@@ -114,7 +115,7 @@ class SlackAppConfiguration extends React.Component {
                   onClick={() => adminNotificationContainer.switchSlackOption('Incoming Webhooks')}
                   onClick={() => adminNotificationContainer.switchSlackOption('Incoming Webhooks')}
                 >
                 >
                   {t('notification_setting.use_instead')}
                   {t('notification_setting.use_instead')}
-                </a>{' '}
+                </a>
               </div>
               </div>
 
 
               <div className="row mb-5">
               <div className="row mb-5">