mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 07:10:55 +00:00
parent
52209a3d71
commit
4b4e03f19f
@ -14,6 +14,7 @@
|
||||
border: 1px solid #dedede;
|
||||
border-radius: 4px;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
line-height: 26px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@ -21,7 +22,3 @@
|
||||
.sf-metadata-auto-image-tags .auto-image-tag.selected {
|
||||
border-color: #FF9800;
|
||||
}
|
||||
|
||||
.sf-metadata-auto-image-tags .auto-image-tag.selected::after {
|
||||
content: ('');
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import { getTagByName, getTagId } from '../../../../tag/utils';
|
||||
import { PRIVATE_COLUMN_KEY as TAGS_PRIVATE_COLUMN_KEY } from '../../../../tag/constants';
|
||||
import { SELECT_OPTION_COLORS } from '../../../constants';
|
||||
import { useTags } from '../../../../tag/hooks';
|
||||
import EmptyTip from '../../../../components/empty-tip';
|
||||
|
||||
import './index.css';
|
||||
|
||||
@ -140,14 +141,14 @@ const FileTagsDialog = ({ record, onToggle, onSubmit }) => {
|
||||
})}
|
||||
</>
|
||||
) : (
|
||||
<div className="empty-tip">{gettext('No tags')}</div>
|
||||
<EmptyTip className="w-100 h-100" text={gettext('No tags')} />
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="secondary" onClick={() => onToggle()}>{gettext('Cancel')}</Button>
|
||||
<Button color="primary" disabled={isLoading || isSubmitting} onClick={handelSubmit}>{gettext('Submit')}</Button>
|
||||
<Button color="primary" disabled={isLoading || isSubmitting || fileTags.length === 0} onClick={handelSubmit}>{gettext('Submit')}</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user