Skip to content

Commit

Permalink
Merge pull request #233 from aroskanalen/feature/970-media-archive-click
Browse files Browse the repository at this point in the history
970: Fixed media archive click issue
  • Loading branch information
tuj authored Mar 19, 2024
2 parents 36f8a5c + 33494be commit 6103048
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

- [#233](https://github.com/os2display/display-admin-client/pull/233)
- Fixed issue when clicking media archive element when media archive is not in multiple mode.
- [#232](https://github.com/os2display/display-admin-client/pull/232)
- Fixed time zone issue in playlist schedules.
- [#231](https://github.com/os2display/display-admin-client/pull/231)
Expand Down
1 change: 1 addition & 0 deletions src/components/media-modal/media-modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Modal from "react-bootstrap/Modal";
import ModalDialog from "../util/modal/modal-dialog";
import MediaList from "../media/media-list";
import useModal from "../../context/modal-context/modal-context-hook";

/**
* Media modal component.
*
Expand Down
7 changes: 4 additions & 3 deletions src/components/slide/content/media-selector-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,17 @@ function MediaSelectorList({ multiple, selectedMediaIds, onItemClick }) {
return (
<div key={data["@id"]} className="col mb-3">
<div
className={`card bg-light h-100 media-item +
${selected ? " selected" : ""}`}
className={`card bg-light h-100 media-item ${
selected ? " selected" : ""
}`}
onClick={() => onItemClick(data)}
>
<FilePreview fileEntry={data} />
{multiple && (
<Form.Check
className="d-flex justify-content-end"
type="checkbox"
checked={selected}
onClick={() => onItemClick(data)}
aria-label={t("checkbox-form-aria-label", {
this: data.title,
})}
Expand Down

0 comments on commit 6103048

Please sign in to comment.