Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Change default to the more frequently needed value

Manav Rathid99b3e422b56
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
index c2054b24ae..f14f0d7cc8 100644
--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
@@ -228,7 +228,6 @@ export const AlbumCastDialogContents: React.FC<AlbumCastDialogProps> = ({
label={t("code")}
placeholder={ut("123456")}
submitButtonTitle={t("pair_device_to_tv")}
- submitButtonColor="accent"
onSubmit={onSubmit}
/>
<FocusVisibleButton
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index d164791595..4e8031e23b 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -522,6 +522,7 @@ const CollectionOptions: React.FC<CollectionHeaderProps> = ({
label={t("album_name")}
autoFocus
initialValue={activeCollection?.name}
+ submitButtonColor="primary"
submitButtonTitle={t("rename")}
onSubmit={renameCollection}
/>
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 11495a5b45..f374766780 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -1696,6 +1696,7 @@ const SetPublicLinkPassword: React.FC<SetPublicLinkPasswordProps> = ({
<SingleInputForm
inputType="password"
label={t("password")}
+ submitButtonColor="primary"
submitButtonTitle={t("lock")}
onCancel={onClose}
onSubmit={savePassword}
diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsx
index ff85b567ff..d3fab0e1a4 100644
--- a/web/apps/photos/src/components/Upload.tsx
+++ b/web/apps/photos/src/components/Upload.tsx
@@ -862,7 +862,6 @@ export const Upload: React.FC<UploadProps> = ({
label={t("album_name")}
autoFocus
initialValue={prefilledNewAlbumName}
- submitButtonColor="accent"
submitButtonTitle={t("create")}
onSubmit={uploadToSingleNewCollection}
/>
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 813406984b..c1b1f83343 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1145,7 +1145,6 @@ const Page: React.FC = () => {
title={t("new_album")}
label={t("album_name")}
autoFocus
- submitButtonColor="accent"
submitButtonTitle={t("create")}
onSubmit={handleAlbumNameSubmit}
/>
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index f68ad9c08d..25e3d62684 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -458,6 +458,7 @@ export default function PublicCollectionGallery() {
<SingleInputForm
inputType="password"
label={t("password")}
+ submitButtonColor="primary"
submitButtonTitle={t("unlock")}
onSubmit={handleSubmitPassword}
/>
diff --git a/web/packages/accounts/pages/recover.tsx b/web/packages/accounts/pages/recover.tsx
index 4bcdd12894..d5f0f55577 100644
--- a/web/packages/accounts/pages/recover.tsx
+++ b/web/packages/accounts/pages/recover.tsx
@@ -95,7 +95,6 @@ const Page: React.FC = () => {
<SingleInputForm
autoComplete="off"
label={t("recovery_key")}
- submitButtonColor="accent"
submitButtonTitle={t("recover")}
onSubmit={recover}
/>
diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsx
index 39e33756c1..82e7db2f6e 100644
--- a/web/packages/accounts/pages/verify.tsx
+++ b/web/packages/accounts/pages/verify.tsx
@@ -244,7 +244,6 @@ const Page: React.FC = () => {
<SingleInputForm
autoComplete="one-time-code"
label={t("verification_code")}
- submitButtonColor="accent"
submitButtonTitle={t("verify")}
onSubmit={onSubmit}
/>
diff --git a/web/packages/base/components/SingleInputForm.tsx b/web/packages/base/components/SingleInputForm.tsx
index 2d53e99f84..c003d843e8 100644
--- a/web/packages/base/components/SingleInputForm.tsx
+++ b/web/packages/base/components/SingleInputForm.tsx
@@ -31,16 +31,16 @@ export type SingleInputFormProps = Pick<
* The initial value, if any, to prefill in the input.
*/
initialValue?: string;
- /**
- * Title for the submit button.
- */
- submitButtonTitle: string;
/**
* Color of the submit button.
*
- * Default: "primary".
+ * Default: "accent".
*/
submitButtonColor?: ButtonProps["color"];
+ /**
+ * Title for the submit button.
+ */
+ submitButtonTitle: string;
/**
* Cancellation handler.
*
@@ -133,7 +133,7 @@ export const SingleInputForm: React.FC<SingleInputFormProps> = ({
fullWidth
type="submit"
loading={formik.isSubmitting}
- color={submitButtonColor ?? "primary"}
+ color={submitButtonColor ?? "accent"}
>
{submitButtonTitle}
</LoadingButton>
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index f4d4091189..658175da5c 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -844,6 +844,7 @@ const RenameFileDialog: React.FC<RenameFileDialogProps> = ({
placeholder={t("file_name")}
autoFocus
initialValue={name}
+ submitButtonColor="primary"
submitButtonTitle={t("rename")}
onSubmit={handleSubmit}
onCancel={onClose}
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
index 7954e6599c..b4a9a0cc18 100644
--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx
+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
@@ -168,6 +168,7 @@ const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({ person }) => {
autoComplete="name"
autoFocus
initialValue={name}
+ submitButtonColor="primary"
submitButtonTitle={t("rename")}
onSubmit={handleRename}
/>
@@ -373,6 +374,7 @@ const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
placeholder={t("enter_name")}
autoComplete="name"
autoFocus
+ submitButtonColor="primary"
submitButtonTitle={t("add")}
onSubmit={handleAddPersonWithName}
/>