From b20144db8ec18630cf21cdc4e47c5681f2a67aa0 Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Thu, 19 Nov 2015 11:59:59 -0500
Subject: Converted GetLinkModal to React-Bootstrap and added
 GetTeamInviteLinkModal

---
 web/react/stores/team_store.jsx | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'web/react/stores/team_store.jsx')

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;
-- 
cgit v1.2.3-1-g7c22

