diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-19 11:59:59 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-23 10:53:07 -0500 |
commit | b20144db8ec18630cf21cdc4e47c5681f2a67aa0 (patch) | |
tree | 09e580e085cefe5546a6f38d89840faaec327867 /web/react/stores | |
parent | e8f6dd2f3359feceeae9923366c5ec80a6ab1d73 (diff) | |
download | chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.tar.gz chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.tar.bz2 chat-b20144db8ec18630cf21cdc4e47c5681f2a67aa0.zip |
Converted GetLinkModal to React-Bootstrap and added GetTeamInviteLinkModal
Diffstat (limited to 'web/react/stores')
-rw-r--r-- | web/react/stores/modal_store.jsx | 1 | ||||
-rw-r--r-- | web/react/stores/team_store.jsx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/web/react/stores/modal_store.jsx b/web/react/stores/modal_store.jsx index 69f43a5cf..a26a97f53 100644 --- a/web/react/stores/modal_store.jsx +++ b/web/react/stores/modal_store.jsx @@ -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; } diff --git a/web/react/stores/team_store.jsx b/web/react/stores/team_store.jsx index 26c83cc8c..2d518d9e7 100644 --- a/web/react/stores/team_store.jsx +++ b/web/react/stores/team_store.jsx @@ -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; |