summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-16 12:05:06 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-17 11:14:27 +0200
commit9e1cd6d8735010e8b462258668a101abc2ea184b (patch)
tree1a469c49813b1df017925edef6720501cc18caf8 /apps
parentc9397dffea9da757d18514e8eb303c3c88756c84 (diff)
downloadnextcloud-server-9e1cd6d8735010e8b462258668a101abc2ea184b.tar.gz
nextcloud-server-9e1cd6d8735010e8b462258668a101abc2ea184b.zip
Change the order of the buttons
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/api/server2server.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/api/server2server.php b/apps/files_sharing/api/server2server.php
index 6ecaea20535..b3d54b5d0c8 100644
--- a/apps/files_sharing/api/server2server.php
+++ b/apps/files_sharing/api/server2server.php
@@ -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);