Revize fabfbe32
Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)
webapp/components/modals/SetRequiredAnnotationsCountModal.tsx | ||
---|---|---|
6 | 6 |
import { ShowToast } from '../../utils/alerts'; |
7 | 7 |
|
8 | 8 |
interface ModalProps { |
9 |
onCancel: () => void; |
|
9 |
onCancel: (ok: boolean) => void;
|
|
10 | 10 |
documentsIds: string[]; |
11 | 11 |
} |
12 | 12 |
|
13 | 13 |
function SetRequiredAnnotationsCountModal({ onCancel, documentsIds }: ModalProps) { |
14 | 14 |
const handleOk = () => { |
15 |
onCancel(); |
|
15 |
onCancel(true);
|
|
16 | 16 |
}; |
17 | 17 |
|
18 | 18 |
const handleCancel = () => { |
19 |
onCancel(); |
|
19 |
onCancel(false);
|
|
20 | 20 |
}; |
21 | 21 |
|
22 | 22 |
const onFinish = async (values: any) => { |
Také k dispozici: Unified diff
Refactoring, fixes