summaryrefslogtreecommitdiffstats
path: root/webapp/client
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-05 16:35:03 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-05 16:35:03 -0400
commitd2ddf40f56191c1770c3ca93d747a7f1b749f26c (patch)
tree9cd5d9ac9fc5b9da21fba8df9990c5f927801272 /webapp/client
parent696ffb4745bec6306f88c5693b8ded89a47f5de7 (diff)
downloadchat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.tar.gz
chat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.tar.bz2
chat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.zip
PLT-2600/PLT-2770 Added Get Public Link modal and added new API for public file links (#2892)
* Switched public file links to use a GetLinkModal * Separated getFile and the new getPublicFile api calls
Diffstat (limited to 'webapp/client')
-rw-r--r--webapp/client/client.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 73cc6120f..56eb4a137 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1325,7 +1325,13 @@ export default class Client {
end(this.handleResponse.bind(this, 'getFileInfo', success, error));
}
- getPublicLink = (data, success, error) => {
+ getPublicLink = (channelId, userId, filename, success, error) => {
+ const data = {
+ channel_id: channelId,
+ user_id: userId,
+ filename
+ };
+
request.
post(`${this.getFilesRoute()}/get_public_link`).
set(this.defaultHeaders).