We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6890b4e commit c67ff38Copy full SHA for c67ff38
demo/app/Sharp/Posts/PostList.php
@@ -80,6 +80,10 @@ public function buildListConfig(): void
80
81
protected function buildPageAlert(PageAlert $pageAlert): void
82
{
83
+ if (sharp()->context()->isShow()) {
84
+ return;
85
+ }
86
+
87
if (auth()->user()->isAdmin() && ($count = Post::where('state', 'draft')->count()) > 0) {
88
$pageAlert
89
->setMessage(sprintf('%d posts are still in draft', $count))
0 commit comments