π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve collection creation flow
Vishnu Mohandas630652197b9c
diff --git a/web/apps/locker/src/components/ItemList.tsx b/web/apps/locker/src/components/ItemList.tsxindex f4ccb80558..00c959f3a2 100644--- a/web/apps/locker/src/components/ItemList.tsx+++ b/web/apps/locker/src/components/ItemList.tsx@@ -29,6 +29,7 @@ import {Typography,} from "@mui/material";import { ensureLocalUser } from "ente-accounts-rs/services/user";+import { LoadingButton } from "ente-base/components/mui/LoadingButton";import {OverflowMenu,OverflowMenuOption,@@ -1244,7 +1245,7 @@ export const ItemList: React.FC<ItemListProps> = ({fullWidthmaxWidth="xs">- <DialogTitle>{t("createNewCollection")}</DialogTitle>+ <DialogTitle>{t("createCollection")}</DialogTitle><DialogContent><Stack sx={{ gap: 2, pt: 0.25, pb: 1 }}><TextField@@ -1256,6 +1257,7 @@ export const ItemList: React.FC<ItemListProps> = ({label={t("enterCollectionName")}fullWidthautoFocus+ disabled={creatingCollection}onKeyDown={(event) => {if (event.key === "Enter") {void handleCreateCollectionConfirm();@@ -1279,19 +1281,17 @@ export const ItemList: React.FC<ItemListProps> = ({>{t("cancel")}</Button>- <Button+ <LoadingButtonfullWidth- variant="contained"+ color="primary"+ loading={creatingCollection}onClick={() =>void handleCreateCollectionConfirm()}- disabled={- creatingCollection ||- !createCollectionName.trim()- }+ disabled={!createCollectionName.trim()}>{t("createCollectionButton")}- </Button>+ </LoadingButton></Stack></Stack></DialogContent>