mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Converted GetLinkModal to React-Bootstrap and added GetTeamInviteLinkModal
This commit is contained in:
@@ -34,6 +34,7 @@ class ModalStoreClass extends EventEmitter {
|
||||
case ActionTypes.TOGGLE_IMPORT_THEME_MODAL:
|
||||
case ActionTypes.TOGGLE_INVITE_MEMBER_MODAL:
|
||||
case ActionTypes.TOGGLE_DELETE_POST_MODAL:
|
||||
case ActionTypes.TOGGLE_GET_TEAM_INVITE_LINK_MODAL:
|
||||
this.emit(type, value, args);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ class TeamStoreClass extends EventEmitter {
|
||||
this.getCurrentId = this.getCurrentId.bind(this);
|
||||
this.getCurrent = this.getCurrent.bind(this);
|
||||
this.getCurrentTeamUrl = this.getCurrentTeamUrl.bind(this);
|
||||
this.getCurrentInviteLink = this.getCurrentInviteLink.bind(this);
|
||||
this.saveTeam = this.saveTeam.bind(this);
|
||||
}
|
||||
|
||||
@@ -92,6 +93,16 @@ class TeamStoreClass extends EventEmitter {
|
||||
return null;
|
||||
}
|
||||
|
||||
getCurrentInviteLink() {
|
||||
const current = this.getCurrent();
|
||||
|
||||
if (current) {
|
||||
return getWindowLocationOrigin() + '/signup_user_complete/?id=' + current.invite_id;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
saveTeam(team) {
|
||||
var teams = this.getAll();
|
||||
teams[team.id] = team;
|
||||
|
||||
Reference in New Issue
Block a user