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
Этот коммит содержится в:
Harrison Healey
2016-05-05 16:35:03 -04:00
коммит произвёл Christopher Speller
родитель 696ffb4745
Коммит d2ddf40f56
15 изменённых файлов: 489 добавлений и 290 удалений

Просмотреть файл

@@ -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).