Skip to content

Don´t show "0" if there are NO DB notifications #11406

Answered by leandrocfe
vogelor asked this question in Help
Discussion options

You must be logged in to vote

create this view resources/views/vendor/filament-panels/components/topbar/database-notifications-trigger.blade.php

<x-filament::icon-button
    :badge="$unreadNotificationsCount ? $unreadNotificationsCount : null"
    color="gray"
    icon="heroicon-o-bell"
    icon-alias="panels::topbar.open-database-notifications-button"
    icon-size="lg"
    :label="__('filament-panels::layout.actions.open_database_notifications.label')"
/>

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@vogelor
Comment options

@bilogic
Comment options

@leandrocfe
Comment options

Answer selected by vogelor
Comment options

You must be logged in to vote
1 reply
@stephenlake
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants