New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLT-6548] Mobile Web View: Add "Leave Team" option to main menu #6472
Conversation
this is what I call teamworking :) |
PS. if you try to click on the leave team to leave the team you will get an javascript error. The error should be fixed in this PR: mattermost/mattermost-redux#107 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cpanato. Unfortunately I still seem to be getting a JS error even through the PR you mentioned has been merged and I started a new test server. Do you mind taking a look when you get a chance?
I dont know what more I need to do in order to get the fix from the other repo. Do we need to somehow update the dependencies for |
I rebased maybe it works |
You need to point it at the latest redux changes. Just make this change or rebase after this PR goes in: |
I will wait the PR @jwilander |
actually looks like it is been merged :) |
Thanks @cpanato, looks like it still needs a rebase when you have a chance? |
@esethna @jasonblais rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cpanato, looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @cpanato, just a minor comments. please see code review.
@@ -173,6 +173,7 @@ export default class SidebarRightMenu extends React.Component { | |||
let joinAnotherTeamLink; | |||
let isAdmin = false; | |||
let isSystemAdmin = false; | |||
const leaveTeamIcon = Constants.LEAVE_TEAM_SVG; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of assigning to a variable, it might be better to use the constant directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
> | ||
<span | ||
className='icon fa' | ||
dangerouslySetInnerHTML={{__html: leaveTeamIcon}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className fa
may not be necessary.
please update to:
className='icon'
dangerouslySetInnerHTML={{__html: Constants.LEAVE_TEAM_SVG}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Thanks @cpanato! |
@saturninoabril rebased |
Summary
Mobile Web View: Add "Leave Team" option to main menu
Ticket Link
JIRA: https://mattermost.atlassian.net/browse/PLT-6548
GitHub: #6460
Checklist