mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
fix: metadata switch classname (#7717)
Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ModalBody, ModalFooter, Button } from 'reactstrap';
|
||||
import classnames from 'classnames';
|
||||
import Switch from '../../../../components/switch';
|
||||
import { gettext } from '../../../../utils/constants';
|
||||
import metadataAPI from '../../../api';
|
||||
@@ -69,7 +68,7 @@ const MetadataFaceRecognitionDialog = ({ value: oldValue, repoID, toggleDialog:
|
||||
disabled={submitting || !enableMetadata}
|
||||
size="large"
|
||||
textPosition="right"
|
||||
className={classnames('change-face-recognition-status-management w-100', { 'disabled': submitting || oldValue })}
|
||||
className="change-face-recognition-status-management w-100"
|
||||
onChange={onValueChange}
|
||||
placeholder={gettext('Face recognition')}
|
||||
/>
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ModalBody, ModalFooter, Button, FormGroup, Label } from 'reactstrap';
|
||||
import classnames from 'classnames';
|
||||
import Switch from '../../../../components/switch';
|
||||
import { gettext } from '../../../../utils/constants';
|
||||
import tagsAPI from '../../../../tag/api';
|
||||
@@ -89,7 +88,7 @@ const MetadataTagsStatusDialog = ({ value: oldValue, lang: oldLang, repoID, togg
|
||||
disabled={submitting || !enableMetadata}
|
||||
size="large"
|
||||
textPosition="right"
|
||||
className={classnames('change-face-recognition-status-management w-100', { 'disabled': submitting || oldValue })}
|
||||
className="change-face-recognition-status-management w-100"
|
||||
onChange={onValueChange}
|
||||
placeholder={gettext('Tags')}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user