зеркало из https://github.com/nextcloud/server.git
fix: Display 'Leave share' instead of 'Delete'
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Родитель
46340d1d39
Коммит
c43353d6e6
|
@ -159,6 +159,10 @@ class ShareAPIController extends OCSController {
|
||||||
$result['item_permissions'] = $node->getPermissions();
|
$result['item_permissions'] = $node->getPermissions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See MOUNT_ROOT_PROPERTYNAME dav property
|
||||||
|
$result['is-mount-root'] = $node->getInternalPath() === '';
|
||||||
|
$result['mount-type'] = $node->getMountPoint()->getMountType();
|
||||||
|
|
||||||
$result['mimetype'] = $node->getMimetype();
|
$result['mimetype'] = $node->getMimetype();
|
||||||
$result['has_preview'] = $this->previewManager->isAvailable($node);
|
$result['has_preview'] = $this->previewManager->isAvailable($node);
|
||||||
$result['storage_id'] = $node->getStorage()->getId();
|
$result['storage_id'] = $node->getStorage()->getId();
|
||||||
|
|
|
@ -22,6 +22,7 @@ namespace OCA\Files_Sharing;
|
||||||
* file_target: string,
|
* file_target: string,
|
||||||
* has_preview: bool,
|
* has_preview: bool,
|
||||||
* hide_download: 0|1,
|
* hide_download: 0|1,
|
||||||
|
* is-mount-root: bool,
|
||||||
* id: string,
|
* id: string,
|
||||||
* item_mtime: int,
|
* item_mtime: int,
|
||||||
* item_permissions?: int,
|
* item_permissions?: int,
|
||||||
|
@ -31,6 +32,7 @@ namespace OCA\Files_Sharing;
|
||||||
* label: ?string,
|
* label: ?string,
|
||||||
* mail_send: 0|1,
|
* mail_send: 0|1,
|
||||||
* mimetype: string,
|
* mimetype: string,
|
||||||
|
* mount-type: string,
|
||||||
* note: string,
|
* note: string,
|
||||||
* parent: null,
|
* parent: null,
|
||||||
* password?: null|string,
|
* password?: null|string,
|
||||||
|
|
|
@ -480,6 +480,7 @@
|
||||||
"file_target",
|
"file_target",
|
||||||
"has_preview",
|
"has_preview",
|
||||||
"hide_download",
|
"hide_download",
|
||||||
|
"is-mount-root",
|
||||||
"id",
|
"id",
|
||||||
"item_mtime",
|
"item_mtime",
|
||||||
"item_size",
|
"item_size",
|
||||||
|
@ -488,6 +489,7 @@
|
||||||
"label",
|
"label",
|
||||||
"mail_send",
|
"mail_send",
|
||||||
"mimetype",
|
"mimetype",
|
||||||
|
"mount-type",
|
||||||
"note",
|
"note",
|
||||||
"parent",
|
"parent",
|
||||||
"path",
|
"path",
|
||||||
|
@ -543,6 +545,9 @@
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"is-mount-root": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -592,6 +597,9 @@
|
||||||
"mimetype": {
|
"mimetype": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"mount-type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"note": {
|
"note": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче