Skip to content

Commit c67ff38

Browse files
committed
[demo] Hide showlist pagealert in EEL case
1 parent 6890b4e commit c67ff38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demo/app/Sharp/Posts/PostList.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public function buildListConfig(): void
8080

8181
protected function buildPageAlert(PageAlert $pageAlert): void
8282
{
83+
if (sharp()->context()->isShow()) {
84+
return;
85+
}
86+
8387
if (auth()->user()->isAdmin() && ($count = Post::where('state', 'draft')->count()) > 0) {
8488
$pageAlert
8589
->setMessage(sprintf('%d posts are still in draft', $count))

0 commit comments

Comments
 (0)