Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@duncanmcclean
Copy link
Member

Before

CleanShot 2025-10-17 at 14 00 29

After

CleanShot 2025-10-17 at 13 59 28

@jasonvarga
Copy link
Member

Removing that second badge entirely causes it to not show up at all if you are impersonating a non-super user.

The issue was that it should have been an elseif when converting from blade to inertia.

@if ($user->isSuper())
    <div class="text-xs text-gray-500 font-normal flex items-center gap-1">
        {{ __('Super Admin') }}
        @if (session()->get('statamic_impersonated_by'))
            <ui-badge size="sm" pill :text="__('Impersonating')" />
        @endif
    </div>
@elseif (session()->get('statamic_impersonated_by'))
    <ui-badge size="sm" pill :text="__('Impersonating')" />
@endif

@jasonvarga jasonvarga merged commit eee47ec into master Oct 17, 2025
18 checks passed
@jasonvarga jasonvarga deleted the duplicate-impersonating-badges branch October 17, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants