diff --git a/kahuna/public/js/components/gr-icon/gr-icon.css b/kahuna/public/js/components/gr-icon/gr-icon.css index 538182322d..066181553b 100644 --- a/kahuna/public/js/components/gr-icon/gr-icon.css +++ b/kahuna/public/js/components/gr-icon/gr-icon.css @@ -57,6 +57,12 @@ gr-icon-label .icon-label { padding-right: 6px; } +.gr-sent-to-photosales-unpub-icon svg { + width: 42px; + height: 32px; + padding-right: 6px; +} + gr-library-add-icon svg, gr-library-added-icon svg, gr-library-locked-icon svg, diff --git a/kahuna/public/js/components/gr-icon/gr-icon.js b/kahuna/public/js/components/gr-icon/gr-icon.js index 552a2c678c..a61d30483c 100644 --- a/kahuna/public/js/components/gr-icon/gr-icon.js +++ b/kahuna/public/js/components/gr-icon/gr-icon.js @@ -10,6 +10,7 @@ import libraryLockedIcon from './icons/library-locked.svg'; import libraryRemoveIcon from './icons/library-remove.svg'; import sentToPhotoSalesIcon from './icons/sent-to-photosales.svg'; +import sentToPhotoSalesUnpubIcon from './icons/sent-to-photosales-unpub.svg'; export var icon = angular.module('grIcon', []); @@ -59,3 +60,4 @@ defineIcon('grLibraryLockedIcon', libraryLockedIcon); defineIcon('grLibraryRemoveIcon', libraryRemoveIcon); defineIcon('grSentToPhotosalesIcon', sentToPhotoSalesIcon); +defineIcon('grSentToPhotosalesUnpubIcon', sentToPhotoSalesUnpubIcon); diff --git a/kahuna/public/js/components/gr-icon/icons/sent-to-photosales-unpub.svg b/kahuna/public/js/components/gr-icon/icons/sent-to-photosales-unpub.svg new file mode 100644 index 0000000000..7ec5e525f2 --- /dev/null +++ b/kahuna/public/js/components/gr-icon/icons/sent-to-photosales-unpub.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + diff --git a/kahuna/public/js/preview/image.html b/kahuna/public/js/preview/image.html index 11779c5576..dc962bc354 100644 --- a/kahuna/public/js/preview/image.html +++ b/kahuna/public/js/preview/image.html @@ -196,7 +196,12 @@ - + + + + + + diff --git a/kahuna/public/js/preview/image.js b/kahuna/public/js/preview/image.js index f0709c84a5..d8b8ff2dea 100644 --- a/kahuna/public/js/preview/image.js +++ b/kahuna/public/js/preview/image.js @@ -66,6 +66,10 @@ image.controller('uiPreviewImageCtrl', [ ctrl.showSendToPhotoSales = () => $window._clientConfig.showSendToPhotoSales; ctrl.uploadedByCapture = ctrl.image.data.uploadedBy === "Capture_AutoIngest"; + ctrl.sentToPhotosalesPublished = () => { + const isPublished = ctrl.image.data.metadata.domainMetadata?.archives?.isPublished ?? "True"; + return isPublished === "True"; + }; mediaApi.getSession().then(session => { ctrl.showPaid = session.user.permissions.showPaid ? session.user.permissions.showPaid : undefined; });