mirror of https://github.com/stashapp/stash.git
[Feature] Add image count to gallery list (#429)
* Add imagecount to gallery list * Port to 2.5 Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
parent
82201e23e0
commit
10b6d4b579
|
@ -47,7 +47,7 @@ export const GalleryList: React.FC = () => {
|
|||
</Link>
|
||||
</td>
|
||||
<td className="d-none d-sm-block">
|
||||
<Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link>
|
||||
<Link to={`/galleries/${gallery.id}`}>{gallery.path} ({gallery.files.length} {gallery.files.length === 1 ? 'image' : 'images'})</Link>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
|
|
@ -38,7 +38,7 @@ export const GalleryList: FunctionComponent<IProps> = (props: IProps) => {
|
|||
{gallery.files.length > 0 ? <img alt={gallery.title} src={`${gallery.files[0].path}?thumb=true`} /> : undefined}
|
||||
</Link>
|
||||
</td>
|
||||
<td><Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link></td>
|
||||
<td><Link to={`/galleries/${gallery.id}`}>{gallery.path} ({gallery.files.length} {gallery.files.length === 1 ? 'image' : 'images'})</Link></td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue