diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-01 15:07:35 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-04-29 17:53:35 +0000 |
commit | d466a7b80834b6e31bfcb9d764816a01da0cbc7c (patch) | |
tree | 8283f4910aeb186c89085224ac109df5bbe4af85 /apps/files_sharing/src/models/Share.js | |
parent | b219eadb8f3f459f2c71e937dfd3542f0792da8e (diff) | |
download | nextcloud-server-d466a7b80834b6e31bfcb9d764816a01da0cbc7c.tar.gz nextcloud-server-d466a7b80834b6e31bfcb9d764816a01da0cbc7c.zip |
Allow to navigate to others with access from the sidebar
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/models/Share.js')
-rw-r--r-- | apps/files_sharing/src/models/Share.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js index 1c8c24cfc7b..92ea314071f 100644 --- a/apps/files_sharing/src/models/Share.js +++ b/apps/files_sharing/src/models/Share.js @@ -467,6 +467,26 @@ export default class Share { return this.#share.can_delete === true } + /** + * Top level accessible shared folder fileid for the current user + * @returns {string} + * @readonly + * @memberof Share + */ + get viaFileid() { + return this.#share.via_fileid + } + + /** + * Top level accessible shared folder path for the current user + * @returns {string} + * @readonly + * @memberof Share + */ + get viaPath() { + return this.#share.via_path + } + // TODO: SORT THOSE PROPERTIES get label() { return this.#share.label |