mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
b106ed3219
When a user is allowed to make edits, show a normal edit button. When a user cannot make edits, show the locked button. This patch refactors edit button presentation logic into a new function, updateEditPageButton(), which consistently updates the UI for both enabled and disabled states. Additionally, in cases where the old code only displayed the button via `$caEdit.removeClass( 'hidden' )`, the new code now updates the state appropriately which is a functional change. Finally, this patch sprinkles in some TODOs for future minor refactors that were identified while creating this patch. Bug: T190834 Change-Id: I083e91f0328cc057541ad42a27aae31b32b3d050 |
||
---|---|---|
.. | ||
skins.minerva.backtotop | ||
skins.minerva.base.reset | ||
skins.minerva.base.styles | ||
skins.minerva.categories | ||
skins.minerva.content.styles | ||
skins.minerva.editor | ||
skins.minerva.icons.images | ||
skins.minerva.icons.images.scripts | ||
skins.minerva.icons.images.variants | ||
skins.minerva.mainMenu | ||
skins.minerva.mainMenu.icons | ||
skins.minerva.mainMenu.styles | ||
skins.minerva.mainPage.styles | ||
skins.minerva.newusers | ||
skins.minerva.notifications | ||
skins.minerva.notifications.badge | ||
skins.minerva.scripts | ||
skins.minerva.scripts.top | ||
skins.minerva.tablet.scripts | ||
skins.minerva.tablet.styles | ||
skins.minerva.talk | ||
skins.minerva.toggling | ||
skins.minerva.userpage.icons | ||
skins.minerva.userpage.styles | ||
skins.minerva.watchstar |