IO-1037 Fix double time ticket entry.
This commit is contained in:
@@ -163,10 +163,6 @@ export function TimeTicketModalContainer({
|
||||
}
|
||||
width={"90%"}
|
||||
visible={timeTicketModal.visible}
|
||||
okText={t("general.actions.save")}
|
||||
onOk={() => form.submit()}
|
||||
okButtonProps={{ loading }}
|
||||
onCancel={handleCancel}
|
||||
forceRender
|
||||
afterClose={() => form.resetFields()}
|
||||
footer={
|
||||
@@ -178,7 +174,6 @@ export function TimeTicketModalContainer({
|
||||
{timeTicketModal.context && timeTicketModal.context.id ? null : (
|
||||
<Button
|
||||
type="primary"
|
||||
htmlType="submit"
|
||||
onClick={() => {
|
||||
setEnterAgain(true);
|
||||
}}
|
||||
@@ -195,6 +190,7 @@ export function TimeTicketModalContainer({
|
||||
layout="vertical"
|
||||
autoComplete={"off"}
|
||||
form={form}
|
||||
onFinishFailed={() => setEnterAgain(false)}
|
||||
initialValues={
|
||||
timeTicketModal.context.timeticket
|
||||
? {
|
||||
@@ -224,7 +220,6 @@ export function TimeTicketModalContainer({
|
||||
{timeTicketModal.context && timeTicketModal.context.id ? null : (
|
||||
<Button
|
||||
type="primary"
|
||||
htmlType="submit"
|
||||
onClick={() => {
|
||||
setEnterAgain(true);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user