That's a quite common case that theme layout has not right place for Masquerade block, especially at development time. Therefore default admin theme (Seven) is built without sidebars and the block is forced to be in main content region. I propose attaching a simple floating button for masquerading / unmasquerading.

Comments

chi’s picture

Status: Active » Needs review
StatusFileSize
new3.77 KB

Status: Needs review » Needs work

The last submitted patch, 1: masquerade-ui_improvement-2448271-0.patch, failed testing.

chi’s picture

Status: Needs work » Needs review
StatusFileSize
new3.79 KB

Cleanup

andypost’s picture

Issue tags: +Needs screenshots

Thanx for idea, technical implementation suppose should be a bit different
This approach solves at last current regression of absence unmasquerade link (seems menu changes)

Also I thought about svg icon for right area of toolbar but toolbar is not enabled for authenticated users in standard profile so we need default menu link in any standard menus.
Having a dialog form to masquerade require to add setting for redirect or front route because modal have no referer to redirect

chi’s picture

Issue tags: -Needs screenshots
StatusFileSize
new67.63 KB

so we need default menu link in any standard menus

Many sites do not use standard menus.

andypost’s picture

StatusFileSize
new5.74 KB
new547 bytes

Take a loot at comment and user module *.links.menu.yml files they provide links for standard profile. I just can't get why access for them is not checked right now

andypost’s picture

It makes sense to use the same approach as \Drupal\user\Plugin\Menu\LoginLogoutMenuLink does in core now

wim leers’s picture

That makes sense :)