mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 18:30:17 +01:00
Merge pull request #1367 from wallabag/v2-fix-actions-label
action labels depend on status
This commit is contained in:
commit
2e02b50409
@ -265,7 +265,7 @@ class EntryController extends Controller
|
||||
|
||||
$this->get('session')->getFlashBag()->add(
|
||||
'notice',
|
||||
'Entry archived'
|
||||
'Entry ' . ($entry->isArchived() ? 'archived' : 'unarchived')
|
||||
);
|
||||
|
||||
return $this->redirect($request->headers->get('referer'));
|
||||
@ -290,7 +290,7 @@ class EntryController extends Controller
|
||||
|
||||
$this->get('session')->getFlashBag()->add(
|
||||
'notice',
|
||||
'Entry starred'
|
||||
'Entry ' . ($entry->isStarred() ? 'starred' : 'unstarred')
|
||||
);
|
||||
|
||||
return $this->redirect($request->headers->get('referer'));
|
||||
|
Loading…
Reference in New Issue
Block a user