Revize fabfbe32
Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)
webapp/pages/users/index.tsx | ||
---|---|---|
167 | 167 |
render: (text, row) => ( |
168 | 168 |
<div> |
169 | 169 |
<Space size={'middle'}> |
170 |
<Badge count={row.assignedDocumentsCount}> |
|
170 |
<Badge |
|
171 |
count={ |
|
172 |
row.finalizedDocumentsCount + |
|
173 |
row.inProgressDocumentsCount + |
|
174 |
row.newDocumentsCount |
|
175 |
} |
|
176 |
> |
|
171 | 177 |
<Button onClick={() => showDocsModal(row.id)}> |
172 | 178 |
Dokumenty |
173 | 179 |
</Button> |
... | ... | |
210 | 216 |
{passwordEditVisible && ( |
211 | 217 |
<EditUserPasswordModal userInfo={user} onCancel={hideModals} /> |
212 | 218 |
)} |
213 |
{docsVisible && <UserDocumentsModal userId={user.id} onCancel={hideModals} />}
|
|
219 |
{docsVisible && <UserDocumentsModal user={user} onCancel={hideModals} />}
|
|
214 | 220 |
|
215 | 221 |
<Table |
216 | 222 |
locale={{ ...getLocaleProps() }} |
Také k dispozici: Unified diff
Refactoring, fixes