[Quick Fix] Fix Vector 2022 should display a "log in" link on private wikis
This adds a bit of tech debt and should only be merged if we're looking for a quick fix of T317789. It overrides the `.emptyPortlet` class that is currently hiding the user menu on OfficeWiki et. al. to show the user menu instead. It also hides the learn more link since the presence of the `emptyPortlet` class suggests that we do not have anon editor links in the menu. Bug: T317789 Change-Id: I3deaf6b4896e9ec3a143c5909092caffc600da56
This commit is contained in:
parent
0387f14d08
commit
3613a369eb
|
@ -49,6 +49,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
// T317789: We expect the user menu to always contain at least a login or logout
|
||||
// link which are added to the menu in SkinVector::getUserLinksTemplateData.
|
||||
// Therefore, override the .emptyPortlet class (set by
|
||||
// SkinTemplate::getPortletData) to display the menu instead of hiding it and
|
||||
// hide the .user-menu-anon-editor element (if present) as the presence of
|
||||
// .emptyPortlet suggests that anon users don't have edit permissions.
|
||||
.vector-user-menu.emptyPortlet {
|
||||
display: block;
|
||||
|
||||
.vector-user-menu-anon-editor {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Horizontal links menu - logged in and logged out.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue