Jelajahi Sumber

add a switch in "Only inside the group"

kaoritokashiki 6 tahun lalu
induk
melakukan
81d42ab770

+ 5 - 4
src/client/js/components/Admin/Security/SecuritySetting.jsx

@@ -98,11 +98,12 @@ class SecuritySetting extends React.Component {
                   <input
                   <input
                     type="checkbox"
                     type="checkbox"
                     className="custom-control-input"
                     className="custom-control-input"
-                    id="isLocalEnabled"
-                    onChange={() => adminGeneralSecurityContainer.switchIsLocalEnabled()}
+                    id="isShowRestrictedByGroup"
+                    checked={adminGeneralSecurityContainer.state.isShowRestrictedByGroup}
+                    onChange={() => { adminGeneralSecurityContainer.switchIsShowRestrictedByGroup() }}
                   />
                   />
-                  <label className="custom-control-label" htmlFor="isLocalEnabled">
-                    {t('security_setting.Local.enable_local')}
+                  <label className="custom-control-label" htmlFor="isShowRestrictedByGroup">
+                    {t('Desplay or non-sisplay')}
                   </label>
                   </label>
                 </div>
                 </div>
               </td>
               </td>