Skip to content
Prev Previous commit
Next Next commit
Make section "deleted shares" a subsection of "shares"
Signed-off-by: Morris Jobke <[email protected]>
  • Loading branch information
MorrisJobke committed Jul 16, 2018
commit c0fcc0e45c19b2c7876bd0cd7620a763a8151238
20 changes: 8 additions & 12 deletions apps/files_sharing/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ function() {
}
}

array_push($sharingSublistArray, [
'id' => 'deletedshares',
'appname' => 'files_sharing',
'script' => 'list.php',
'order' => 19,
'name' => $l->t('Deleted shares'),
]);

// show_Quick_Access stored as string
$defaultExpandedState = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_sharing_menu', '0') === '1';

Expand All @@ -98,16 +106,4 @@ function() {
'sublist' => $sharingSublistArray,
'expandedState' => 'show_sharing_menu'
]);


\OCA\Files\App::getNavigationManager()->add(function () {
$l = \OC::$server->getL10N('files_sharing');
return [
'id' => 'deletedshares',
'appname' => 'files_sharing',
'script' => 'list.php',
'order' => 19,
'name' => $l->t('Deleted shares'),
];
});
}