Skip to content

Commit

Permalink
Add message for empty playlists (#5526)
Browse files Browse the repository at this point in the history
* Add message for empty playlists

* Add custom error message for the item view page
  • Loading branch information
Dananji authored Dec 15, 2023
1 parent 6a56d31 commit 1173f63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/javascript/components/MediaObjectRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ const Ramp = ({
}

return (
<IIIFPlayer manifestUrl={manifestUrl}>
<IIIFPlayer manifestUrl={manifestUrl}
customErrorMessage='This page encountered an error. Please refresh or contact an administrator.'>
<Row className="ramp--all-components">
<Col sm={8}>
{ (cdl.enabled && !cdl.can_stream)
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/PlaylistRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Ramp = ({
}

return (
<IIIFPlayer manifestUrl={manifestUrl}>
<IIIFPlayer manifestUrl={manifestUrl} customErrorMessage='This playlist is empty.'>
<Row className="ramp--all-components ramp--playlist">
<Col sm={8}>
<MediaPlayer enableFileDownload={false} />
Expand Down

0 comments on commit 1173f63

Please sign in to comment.