Reorder position of "Shared by me" and "Shared with me"

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/10230/head
Morris Jobke 8 years ago
parent c0fcc0e45c
commit 92e30698bb
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 18
      apps/files_sharing/appinfo/app.php

@ -56,14 +56,6 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
$sharingSublistArray = [];
array_push($sharingSublistArray, [
'id' => 'sharingin',
'appname' => 'files_sharing',
'script' => 'list.php',
'order' => 15,
'name' => $l->t('Shared with you'),
]);
if (\OCP\Util::isSharingDisabledForUser() === false) {
array_push($sharingSublistArray, [
'id' => 'sharingout',
@ -72,7 +64,17 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
'order' => 16,
'name' => $l->t('Shared with others'),
]);
}
array_push($sharingSublistArray, [
'id' => 'sharingin',
'appname' => 'files_sharing',
'script' => 'list.php',
'order' => 15,
'name' => $l->t('Shared with you'),
]);
if (\OCP\Util::isSharingDisabledForUser() === false) {
// Check if sharing by link is enabled
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
array_push($sharingSublistArray, [

Loading…
Cancel
Save