Revize cb6654d2
Přidáno uživatelem Lukáš Vlček před téměř 3 roky(ů)
webapp/components/annotation/AnnotationOccurrenceItem.tsx | ||
---|---|---|
153 | 153 |
danger |
154 | 154 |
className={'mt-1'} |
155 | 155 |
/> |
156 |
<Button |
|
157 |
icon={<LikeOutlined />} |
|
158 |
title={'Označit jako správné řešení'} |
|
159 |
onClick={() => { |
|
160 |
ShowConfirm(() => { |
|
161 |
makeOccurrenceFinal(props.occurrence); |
|
162 |
}, 'označit toto řešení jako správné'); |
|
163 |
}} |
|
164 |
className={'mt-1'} |
|
165 |
/> |
|
166 |
</Col> |
|
167 |
</Row> |
|
168 |
<Row className="mb-1 mt-1"> |
|
169 |
<Col> |
|
170 |
Označili:{' '} |
|
171 |
{props.occurrence.users?.map((u) => ( |
|
172 |
<span |
|
173 |
title={u.name + ' ' + u.surname + ' (' + u.username + ')'} |
|
174 |
key={props.occurrence.occurenceId + '.' + u.id} |
|
175 |
style={{ marginRight: 10 }} |
|
176 |
> |
|
177 |
{getNameTruncated(u)} |
|
178 |
</span> |
|
179 |
))} |
|
156 |
{isFinal && ( |
|
157 |
<Button |
|
158 |
icon={<LikeOutlined />} |
|
159 |
title={'Označit jako správné řešení'} |
|
160 |
onClick={() => { |
|
161 |
ShowConfirm(() => { |
|
162 |
makeOccurrenceFinal(props.occurrence); |
|
163 |
}, 'označit toto řešení jako správné'); |
|
164 |
}} |
|
165 |
className={'mt-1'} |
|
166 |
/> |
|
167 |
)} |
|
180 | 168 |
</Col> |
181 | 169 |
</Row> |
170 |
{isFinal && ( |
|
171 |
<Row className="mb-1 mt-1"> |
|
172 |
<Col> |
|
173 |
Označili:{' '} |
|
174 |
{props.occurrence.users?.map((u) => ( |
|
175 |
<span |
|
176 |
title={u.name + ' ' + u.surname + ' (' + u.username + ')'} |
|
177 |
key={props.occurrence.occurenceId + '.' + u.id} |
|
178 |
style={{ marginRight: 10 }} |
|
179 |
> |
|
180 |
{getNameTruncated(u)} |
|
181 |
</span> |
|
182 |
))} |
|
183 |
</Col> |
|
184 |
</Row> |
|
185 |
)} |
|
182 | 186 |
</Container> |
183 | 187 |
); |
184 | 188 |
} |
Také k dispozici: Unified diff
Final annotations fixed