Skip to content

Commit 3d172e9

Browse files
committed
feat: add count to table
1 parent 53d7eb9 commit 3d172e9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

assets/js/Components/Widgets/FileReviewPreview.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ export default function FixIssuesContentPreview({
139139
<>
140140
<div className="strong-caps mt-3">{t('form.file.instances.label')}</div>
141141
<div className="mt-2 rounded-table-wrapper">
142-
<table className="udoit-sortable-table first-column-wide">
142+
<table className="udoit-sortable-table">
143143
<thead>
144144
<tr>
145145
<th>{t('form.file.location.label')}</th>
146+
<th>{t('form.file.count.label')}</th>
146147
<th>{t('form.file.status.label')}</th>
147148
</tr>
148149
</thead>
@@ -155,6 +156,9 @@ export default function FixIssuesContentPreview({
155156
<ExternalLinkIcon className="link-color align-self-center ms-2 icon-sm"/>
156157
</a>
157158
</td>
159+
<td>
160+
<p>{fileReferenceHolder[contentId]?.length}</p>
161+
</td>
158162
<td>
159163
{activeIssue.fileData.replacement ? (
160164
<div className='file-label-pill file-new'>{t('form.file.new.label')}</div>

translations/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@
509509
"form.file.instances.label": "Instances of this file",
510510
"form.file.content.label": "Content",
511511
"form.file.location.label": "Location",
512+
"form.file.count.label": "Count",
512513
"form.file.status.label": "Status",
513514
"form.file.external_url.label": "External URL",
514515
"form.file.no_ref.label": "There are no instances of this file being used in this course. Consider deleting it if it is no longer needed.",

0 commit comments

Comments
 (0)