Revize eba090c1
Přidáno uživatelem Lukáš Vlček před téměř 3 roky(ů)
webapp/pages/documents/admin/index.tsx | ||
---|---|---|
231 | 231 |
title: 'Název dokumentu', |
232 | 232 |
dataIndex: 'name', |
233 | 233 |
key: 'name', |
234 |
width: '15%',
|
|
234 |
width: '30%',
|
|
235 | 235 |
...getColumnSearchProps('name', 'název'), |
236 | 236 |
sorter: { |
237 | 237 |
// @ts-ignore |
... | ... | |
243 | 243 |
title: 'Délka', |
244 | 244 |
dataIndex: 'length', |
245 | 245 |
key: 'length', |
246 |
width: '6%',
|
|
246 |
width: '5%',
|
|
247 | 247 |
align: 'center' as 'center', |
248 | 248 |
sorter: { |
249 | 249 |
// @ts-ignore |
... | ... | |
299 | 299 |
title: 'Anotátoři', |
300 | 300 |
dataIndex: 'annotatingUsers', |
301 | 301 |
key: 'annotatingUsers', |
302 |
width: '20%',
|
|
302 |
width: '30%',
|
|
303 | 303 |
render: ( |
304 | 304 |
columnData: DocumentUserInfo[], |
305 | 305 |
record: DocumentListInfo, |
... | ... | |
350 | 350 |
title: '', |
351 | 351 |
key: 'action', |
352 | 352 |
dataIndex: ['id', 'name'], |
353 |
width: '10%', |
|
354 | 353 |
align: 'center' as 'center', |
354 |
width: '5%', |
|
355 | 355 |
// @ts-ignore |
356 | 356 |
render: (text, row) => ( |
357 |
<Button key={row.id} onClick={() => showPreviewModal(row.id, row.name)}> |
|
357 |
<Button |
|
358 |
style={{ width: '80px' }} |
|
359 |
key={row.id} |
|
360 |
onClick={() => showPreviewModal(row.id, row.name)} |
|
361 |
> |
|
358 | 362 |
Náhled |
359 | 363 |
</Button> |
360 | 364 |
), |
... | ... | |
363 | 367 |
title: 'Finální verze dokumentu', |
364 | 368 |
key: 'final', |
365 | 369 |
dataIndex: ['id', 'finalizedExists'], |
370 |
width: '15%', |
|
366 | 371 |
// @ts-ignore |
367 | 372 |
render: (text, row) => |
368 | 373 |
row.finalizedExists ? ( |
369 |
<Row> |
|
370 |
<Space> |
|
371 |
<Button |
|
372 |
disabled={finalizing} |
|
373 |
onClick={() => finalizeDocumentConfirm(row.id, true)} |
|
374 |
> |
|
375 |
Znovu vytvořit |
|
376 |
</Button> |
|
377 |
<Button |
|
378 |
disabled={finalizing} |
|
379 |
onClick={() => |
|
380 |
editFinalizedDocument(row.finalizedAnnotationId) |
|
381 |
} |
|
382 |
> |
|
383 |
Upravit |
|
384 |
</Button> |
|
385 |
{getFinalizationStateIcon(row.finalizedState)} |
|
386 |
</Space> |
|
387 |
</Row> |
|
374 |
<> |
|
375 |
<Row> |
|
376 |
<Space> |
|
377 |
<Button |
|
378 |
disabled={finalizing} |
|
379 |
onClick={() => finalizeDocumentConfirm(row.id, true)} |
|
380 |
> |
|
381 |
Znovu vytvořit |
|
382 |
</Button> |
|
383 |
</Space> |
|
384 |
</Row> |
|
385 |
<Row style={{ marginTop: '5px' }}> |
|
386 |
<Space> |
|
387 |
<Button |
|
388 |
disabled={finalizing} |
|
389 |
onClick={() => |
|
390 |
editFinalizedDocument(row.finalizedAnnotationId) |
|
391 |
} |
|
392 |
> |
|
393 |
Upravit |
|
394 |
</Button> |
|
395 |
{getFinalizationStateIcon(row.finalizedState)} |
|
396 |
</Space> |
|
397 |
</Row> |
|
398 |
</> |
|
388 | 399 |
) : ( |
389 | 400 |
<Button |
390 | 401 |
disabled={finalizing} |
Také k dispozici: Unified diff
Document table column widths changed