feat: support resubmitting published library items (#5174)

This commit is contained in:
David Luzar 2022-05-11 15:56:11 +02:00 committed by GitHub
parent d2cc76e52e
commit b27ac257e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 8 deletions

View file

@ -172,7 +172,7 @@ const LibraryMenuItems = ({
</ToolButton>
</>
)}
{itemsSelected && !isPublished && (
{itemsSelected && (
<Tooltip label={t("hints.publishLibrary")}>
<ToolButton
type="button"
@ -199,9 +199,6 @@ const LibraryMenuItems = ({
const referrer =
libraryReturnUrl || window.location.origin + window.location.pathname;
const isPublished = selectedItems.some(
(id) => libraryItems.find((item) => item.id === id)?.status === "published",
);
const [lastSelectedItem, setLastSelectedItem] = useState<
LibraryItem["id"] | null