From 6952f6b67d46133ad190377d99639feaa8653412 Mon Sep 17 00:00:00 2001 From: John Thomson Date: Fri, 26 Apr 2024 12:29:53 -0500 Subject: [PATCH] Changes since download-for-edit version of Desktop is now 6.0 (BL-13349) --- src/components/BookDetail/ArtifactHelper.ts | 4 ++-- src/components/BookDetail/BookOwnerControlsBox.tsx | 6 +++--- src/localization/Code Strings.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/BookDetail/ArtifactHelper.ts b/src/components/BookDetail/ArtifactHelper.ts index 14cee78b..8f13290d 100644 --- a/src/components/BookDetail/ArtifactHelper.ts +++ b/src/components/BookDetail/ArtifactHelper.ts @@ -79,9 +79,9 @@ function getBookOrderUrl(book: Book, forEdit: boolean) { // The earliest version that we plan to check this for is 5.5, so it doesn't really // matter what version we put earlier than that for normal downloads, which are handled // by all the versions that do this check. - // We do need 5.7 to handle the forEdit parameter, so we will pass that and retrofit at least + // We do need 6.0 to handle the forEdit parameter, so we will pass that and retrofit at least // 5.5 and 5.6 to do the check. - const minVersion = forEdit ? 5.7 : 4.8; + const minVersion = forEdit ? 6.0 : 4.8; const forEditPart = forEdit ? `&forEdit=true&database-id=${book.id}` diff --git a/src/components/BookDetail/BookOwnerControlsBox.tsx b/src/components/BookDetail/BookOwnerControlsBox.tsx index 74b33f60..91967bea 100644 --- a/src/components/BookDetail/BookOwnerControlsBox.tsx +++ b/src/components/BookDetail/BookOwnerControlsBox.tsx @@ -25,8 +25,8 @@ import { useGetPermissions, } from "../../connection/LibraryQueryHooks"; -// This should become true or just be removed once 5.7 is shipping. -// The controls it hides require 5.7, so we don't want ordinary users to see them until then. +// This should become true or just be removed once 6.0 is shipping. +// The controls it hides require 6.0, so we don't want ordinary users to see them until then. // We do want to be able to test this on our dev and alpha sites, though. const allowDownloadForEditing = window.location.hostname.startsWith("alpha") || @@ -203,7 +203,7 @@ export const BookOwnerControlsBox: React.FunctionComponent<{