Skip to content

Commit

Permalink
#152 | Vinay/Suhas | Fix wording of alert message and selection message
Browse files Browse the repository at this point in the history
  • Loading branch information
Suhas Vishwanath committed Sep 21, 2023
1 parent 3478370 commit b97aa81
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/components/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,7 @@ export default function ImageList() {
const [showModal, setShowModal] = useState(false);

const handleSendSelectedImages = async (inputValue: any) => {
alert(
`We are processing your download request. Once the download is ready, it will be available under Available Downloads.
A maxiumim of 1000 images will be included in the download bundle.`
);
alert(`We are processing your download request. Once the download is ready, it will be available under Available Downloads. At most 1000 media items will be included in the download bundle.`);
if (selectAllPages) {
const options = {
headers: {
Expand Down Expand Up @@ -898,8 +895,9 @@ export default function ImageList() {
indeterminate={selectAllInPage[currentPage] === SOME_SELECTED}
disabled={selectAllPages}
/>} />
{(selectAllInPage[currentPage] === ALL_SELECTED) &&
<MUIButton variant="text" onClick={toggleSelectAllPages}>{selectAllPages ? "CLEAR SELECTION" : "SELECT ALL PAGES"}</MUIButton>}
{(selectAllInPage[currentPage] === ALL_SELECTED) && <>
<MUIButton variant="text" onClick={toggleSelectAllPages} style={{textTransform:"capitalize", fontSize:"1rem"}}>{selectAllPages ? "Clear selection" : "Select all media matching filter"}</MUIButton>
</>}


</div>
Expand Down

0 comments on commit b97aa81

Please sign in to comment.