Change the order of the buttons
This commit is contained in:
parent
c9397dffea
commit
9e1cd6d873
|
@ -93,15 +93,15 @@ class Server2Server {
|
|||
->setObject('remote_share', $remoteId)
|
||||
->setSubject('remote_share', [$user, trim($name, '/')]);
|
||||
|
||||
$acceptAction = $notification->createAction();
|
||||
$acceptAction->setLabel('accept')
|
||||
->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/' . $remoteId), 'POST');
|
||||
$declineAction = $notification->createAction();
|
||||
$declineAction->setLabel('decline')
|
||||
->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/' . $remoteId), 'DELETE');
|
||||
$notification->addAction($declineAction);
|
||||
|
||||
$notification->addAction($acceptAction)
|
||||
->addAction($declineAction);
|
||||
$acceptAction = $notification->createAction();
|
||||
$acceptAction->setLabel('accept')
|
||||
->setLink($urlGenerator->getAbsoluteURL('/ocs/v1.php/apps/files_sharing/api/v1/remote_shares/' . $remoteId), 'POST');
|
||||
$notification->addAction($acceptAction);
|
||||
|
||||
$notificationManager->notify($notification);
|
||||
|
||||
|
|
Loading…
Reference in New Issue