1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00
Files
seahub/tests
lian c1d8b9024b Preview edit file (#2369)
* Revert "update share link permission (#2328)"

This reverts commit 6313e54dd7.

* update share link related UI

Download link(s) to Share link(s)

* update file api

add 'can_preview' and 'can_edit' fields

* update view file page

'invalid extension' to 'File preview unsupported'

* update share popup

1. send file detail request to check if can preview/edit file
2. show or hide share link permission according to api response
3. add tests for can_preview/edit_file func

* use FILEEXT_TYPE_MAP to check if can preview file
2018-09-14 18:13:25 +08:00
..
2018-09-12 18:26:49 +08:00
2018-09-14 18:13:25 +08:00
2017-02-09 14:59:49 +08:00
2018-08-08 10:22:26 +08:00