mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Minor changes to user profile view
This commit is contained in:
@@ -80,7 +80,7 @@ export default function ProfileManagement() {
|
||||
.equals([Yup.ref('newPassword')], 'Passwords do not match')
|
||||
})}
|
||||
>
|
||||
{(formik: { values: any; isSubmitting: any; }) => (
|
||||
{(formik: { values: any; isSubmitting: any; dirty: boolean; }) => (
|
||||
<Form>
|
||||
<div className="flex flex-row flex-grow justify-between mb-8">
|
||||
<h2 className="text-2xl font-bold">My Profile</h2>
|
||||
@@ -97,7 +97,7 @@ export default function ProfileManagement() {
|
||||
<Button
|
||||
color="primary"
|
||||
isLoading={formik.isSubmitting}
|
||||
isDisabled={formik.isSubmitting || configSaved || auth.state.user?.managedBySso}
|
||||
isDisabled={!formik.dirty || formik.isSubmitting || configSaved || auth.state.user?.managedBySso}
|
||||
type="submit"
|
||||
>
|
||||
{formik.isSubmitting ? "" : configSaved ? <Check/> : "Save"}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {GearFine, Palette, User} from "@phosphor-icons/react";
|
||||
import {Palette, User} from "@phosphor-icons/react";
|
||||
import withSideMenu from "Frontend/components/general/withSideMenu";
|
||||
|
||||
const menuItems = [
|
||||
@@ -12,11 +12,12 @@ const menuItems = [
|
||||
url: "appearance",
|
||||
icon: <Palette/>
|
||||
},
|
||||
/* TODO: Implement account self management
|
||||
{
|
||||
title: "Manage account",
|
||||
url: "account-management",
|
||||
icon: <GearFine/>
|
||||
}
|
||||
}*/
|
||||
]
|
||||
|
||||
export const ProfileView = withSideMenu("/settings", menuItems);
|
||||
|
||||
Reference in New Issue
Block a user