Add NLI support to Vue left-menu
Add NLI support to Vue left-menu
Fix https://gitlab.com/gitlab-org/gitter/webapp/issues/2177
-
After the mobile support MR is merged, we should update this to hide the left-menu on mobile.
Testing strategy
- Add the feature toggle,
node ./scripts/utils/feature-toggle.js --name vue-left-menu --description "Left menu using Vue (alpha)"
- Enable the feature toggle (doesn't work for NLI anonymous users though)
- Use the section below to enable
vue-left-menu
for NLI anonymous users (if not already in the diff) - Sign out and visit a chat page
- Notice the NLI left-menu with some basic stats/features
vue-left-menu
for anonymous users
Enable server/web/context-generator-request.js
// TODO: Remove
features = ['vue-left-menu'];
server/web/middlewares/feature-toggles.js
// TODO: Remove
const originalHas = req.fflip.has.bind(req.fflip);
req.fflip.has = feature => {
if (feature === 'vue-left-menu') {
return true;
}
return originalHas(feature);
};
Edited by Eric Eastwood