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

add a switch in "Only inside the group"

kaoritokashiki 6 лет назад
Родитель
Сommit
81d42ab770
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/client/js/components/Admin/Security/SecuritySetting.jsx

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

@@ -98,11 +98,12 @@ class SecuritySetting extends React.Component {
                   <input
                     type="checkbox"
                     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>
                 </div>
               </td>