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