- added nped category options for alert popups
- minor fix on modal for 'DISABLED' MCC
This commit is contained in:
@@ -13,21 +13,19 @@ const NPEDFields = () => {
|
||||
const [showPwd, setShowPwd] = useState(false);
|
||||
const { signIn, signOut } = useNPEDAuth();
|
||||
|
||||
const initialValues = state.npedUser
|
||||
? {
|
||||
username: state.npedUser?.propUsername?.value,
|
||||
password: state.npedUser?.propPassword?.value,
|
||||
clientId: state.npedUser?.propClientID?.value,
|
||||
frontId: "NPED",
|
||||
rearId: "NPED",
|
||||
}
|
||||
: {
|
||||
username: "",
|
||||
password: "",
|
||||
clientId: "",
|
||||
frontId: "NPED",
|
||||
rearId: "NPED",
|
||||
};
|
||||
const username = state.npedUser?.propUsername?.value;
|
||||
const password = state.npedUser?.propPassword?.value;
|
||||
const clientId = state.npedUser?.propClientID?.value;
|
||||
const frontId = "NPED";
|
||||
const rearId = "NPED";
|
||||
|
||||
const initialValues = {
|
||||
username: username ?? "",
|
||||
password: password ?? "",
|
||||
clientId: clientId ?? "",
|
||||
frontId: frontId,
|
||||
rearId: rearId,
|
||||
};
|
||||
|
||||
const handleSubmit = async (values: NPEDFieldType) => {
|
||||
const valuesToSend = {
|
||||
@@ -100,6 +98,7 @@ const NPEDFields = () => {
|
||||
className="p-1.5 border border-gray-400 rounded-lg"
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
{!state.npedUser?.propClientID?.value ? (
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
Reference in New Issue
Block a user