From cc27233765d8e0e29c60e02e02f0eefcc9eeffed Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 9 Oct 2018 19:15:09 -0400 Subject: [PATCH] Display the cabinet "Add new level" link in the top level view too. Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + mayan/apps/cabinets/apps.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 939f7f4bf1..6bc9639a04 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,7 @@ * Only render the Template API view for authenticated users. Thanks rgarcia for the report. * Add icon to the cabinet "Add new level" link. +* Display the cabinet "Add new level" link in the top level view too. 3.1.5 (2018-10-08) ================== diff --git a/mayan/apps/cabinets/apps.py b/mayan/apps/cabinets/apps.py index 4dd42bc64d..31cd038771 100644 --- a/mayan/apps/cabinets/apps.py +++ b/mayan/apps/cabinets/apps.py @@ -114,12 +114,10 @@ class CabinetsApp(MayanAppConfig): menu_object.bind_links( links=( link_cabinet_view, link_cabinet_edit, - link_custom_acl_list, link_cabinet_delete + link_custom_acl_list, link_cabinet_child_add, + link_cabinet_delete ), sources=(Cabinet,) ) - menu_sidebar.bind_links( - links=(link_cabinet_child_add,), sources=(Cabinet,) - ) menu_sidebar.bind_links( links=(link_cabinet_add_document, link_document_cabinet_remove), sources=(