nextcloud/apps/files/tests
Daniel Calviño Sánchez 436ffaecb4 Hide favourite icon in details view if favourite action is not available
When the favourite icon in the details view is clicked the "Favorite"
action is triggered. However, if the action name given to
"triggerAction" is not found then the "Download" action is triggered
instead. As the "Favorite" action is not available in some file lists
(like "Recents") the "Download" action was executed instead in those
cases, which was a strange behaviour. Now the favourite icon is
hidden if its action is not available.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-01-08 17:44:55 +01:00
..
Activity Add tests for getUser() 2017-02-07 12:01:28 +01:00
BackgroundJob Fix getMock files 2016-09-06 09:29:27 +02:00
Command Introduce an event for first time login based on the last login time stamp 2016-11-14 14:50:10 +01:00
Controller Adjust the unit test 2017-06-13 12:28:13 -05:00
Service Add tests for favorite action 2016-12-04 12:54:34 +01:00
Settings Use MockBuilder instead of createMock 2016-08-15 16:43:22 +02:00
js Hide favourite icon in details view if favourite action is not available 2018-01-08 17:44:55 +01:00
HelperTest.php Correctly format OCS response with favorites 2017-09-04 11:49:19 +02:00