1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 07:10:55 +00:00

fifx: auto tags ui (#7211)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇 2024-12-17 18:23:19 +08:00 committed by GitHub
parent 52209a3d71
commit 4b4e03f19f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -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: ('');
}

View File

@ -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>
);