mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: support resubmitting published library items (#5174)
This commit is contained in:
parent
d2cc76e52e
commit
b27ac257e7
6 changed files with 39 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue