|
@@ -12,13 +12,12 @@ import { NotAvailableForReadOnlyUser } from '../NotAvailableForReadOnlyUser';
|
|
|
type RenderTagLabelsProps = {
|
|
type RenderTagLabelsProps = {
|
|
|
tags: string[],
|
|
tags: string[],
|
|
|
isTagLabelsDisabled: boolean,
|
|
isTagLabelsDisabled: boolean,
|
|
|
- isDisappear: boolean,
|
|
|
|
|
pageId: string,
|
|
pageId: string,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
|
|
const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
|
|
|
const {
|
|
const {
|
|
|
- tags, isTagLabelsDisabled, isDisappear, pageId,
|
|
|
|
|
|
|
+ tags, isTagLabelsDisabled, pageId,
|
|
|
} = props;
|
|
} = props;
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
@@ -30,7 +29,7 @@ const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- {!isDisappear && tags.map(tag => (
|
|
|
|
|
|
|
+ {tags.map(tag => (
|
|
|
<a
|
|
<a
|
|
|
key={tag}
|
|
key={tag}
|
|
|
type="button"
|
|
type="button"
|
|
@@ -47,8 +46,7 @@ const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
|
|
|
className={
|
|
className={
|
|
|
`btn btn-link btn-edit-tags text-muted d-flex align-items-center
|
|
`btn btn-link btn-edit-tags text-muted d-flex align-items-center
|
|
|
${isTagsEmpty && 'no-tags'}
|
|
${isTagsEmpty && 'no-tags'}
|
|
|
- ${isTagLabelsDisabled && 'disabled'}
|
|
|
|
|
- ${isDisappear && 'border border-secondary p-1'}`
|
|
|
|
|
|
|
+ ${isTagLabelsDisabled && 'disabled'}`
|
|
|
}
|
|
}
|
|
|
onClick={() => openTagEditModal(tagsInfoData?.tags)}
|
|
onClick={() => openTagEditModal(tagsInfoData?.tags)}
|
|
|
>
|
|
>
|