[ui] Fix order of actions visible in entity type list
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Mar 2017 12:02:29 +0200
changeset 230 b00c8f906a29
parent 229 c2d18668ec69
child 231 295b7783f456
[ui] Fix order of actions visible in entity type list Should first propose to add a new entity, then to import one when it's relevant, then only to delete it. Closes #17066617
cubicweb_sherpa/views/components.py
--- a/cubicweb_sherpa/views/components.py	Tue Mar 28 12:24:46 2017 +0200
+++ b/cubicweb_sherpa/views/components.py	Wed Mar 29 12:02:29 2017 +0200
@@ -31,6 +31,7 @@
                   & is_instance('AuthorityRecord', 'ConceptScheme',
                                 'SEDAArchiveTransfer', 'SEDAArchiveUnit'))
     extra_kwargs = {'SEDAArchiveUnit': {'unit_type': 'unit_content'}}
+    order = 1
 
     @property
     def title(self):
@@ -53,6 +54,7 @@
     __abstract__ = True
     __regid__ = 'sherpa.import_entity'
     __select__ = multi_lines_rset() & has_permission('add')
+    order = 2
 
     @property
     def title(self):