Fixed Marks all and added total downloads to entries.show
This commit is contained in:
@@ -82,7 +82,7 @@ class XenforoApiService {
|
|||||||
public function markAllNotificationsRead(int $userId): void
|
public function markAllNotificationsRead(int $userId): void
|
||||||
{
|
{
|
||||||
Cache::forget("xf_alerts_{$userId}");
|
Cache::forget("xf_alerts_{$userId}");
|
||||||
$this->post("alerts/mark-all", $userId );
|
$this->post("alerts/mark-all", $userId, ['read' => true, 'viewed' => true] );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getConversations(int $userId): mixed
|
public function getConversations(int $userId): mixed
|
||||||
|
|||||||
@@ -122,6 +122,9 @@
|
|||||||
<x-entry-meta-item label="Release Date" value="{{ $entry->release_date->format('Y-m-d') }}"
|
<x-entry-meta-item label="Release Date" value="{{ $entry->release_date->format('Y-m-d') }}"
|
||||||
route="none"/>
|
route="none"/>
|
||||||
@endif
|
@endif
|
||||||
|
@if( $entry->total_downloads )
|
||||||
|
<x-entry-meta-item label="Downloads" value="{{ $entry->total_downloads }}" route="none" />
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="hack-actions" style="display:flex;gap:10px;">
|
<div class="hack-actions" style="display:flex;gap:10px;">
|
||||||
@if($entry->state === 'pending')
|
@if($entry->state === 'pending')
|
||||||
|
|||||||
Reference in New Issue
Block a user