mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 14:47:16 -04:00
WIP
This commit is contained in:
parent
cba328cae3
commit
279139e517
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { FunctionComponent, useMemo, useState } from "react";
|
||||
import React, { FunctionComponent, useEffect, useMemo, useState } from "react";
|
||||
import { Container, Form } from "react-bootstrap";
|
||||
import { AsyncButton, Selector } from "../";
|
||||
import { useIsAnyTaskRunningWithId } from "../../@modules/task/hooks";
|
||||
|
@ -37,6 +37,13 @@ const Editor: FunctionComponent<Props & BaseModalProps> = (props) => {
|
|||
|
||||
const [updating, setUpdating] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (payload) {
|
||||
setId(payload.profileId);
|
||||
setMonitored(payload.monitored);
|
||||
}
|
||||
}, [payload]);
|
||||
|
||||
const footer = (
|
||||
<AsyncButton
|
||||
noReset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue