kopia lustrzana https://github.com/wagtail/wagtail
Introduce the concept of "secondary" (less prominent) action in action menu
and make delete/unpublish/lock/unlock "secondary"pull/6257/head
rodzic
1babf897f7
commit
97e78f4ade
|
@ -16,6 +16,10 @@
|
|||
float: left;
|
||||
}
|
||||
|
||||
.action-secondary {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
input[type=submit],
|
||||
input[type=reset],
|
||||
input[type=button],
|
||||
|
|
|
@ -170,6 +170,7 @@ class UnpublishMenuItem(ActionMenuItem):
|
|||
label = _("Unpublish")
|
||||
name = 'action-unpublish'
|
||||
icon_name = 'download-alt'
|
||||
classname = 'action-secondary'
|
||||
|
||||
def is_shown(self, request, context):
|
||||
return (
|
||||
|
@ -186,6 +187,7 @@ class DeleteMenuItem(ActionMenuItem):
|
|||
name = 'action-delete'
|
||||
label = _("Delete")
|
||||
icon_name = 'bin'
|
||||
classname = 'action-secondary'
|
||||
|
||||
def is_shown(self, request, context):
|
||||
return (
|
||||
|
@ -203,6 +205,7 @@ class LockMenuItem(ActionMenuItem):
|
|||
label = _("Lock")
|
||||
aria_label = _("Apply editor lock")
|
||||
icon_name = 'lock'
|
||||
classname = 'action-secondary'
|
||||
template = 'wagtailadmin/pages/action_menu/lock_unlock_menu_item.html'
|
||||
|
||||
def is_shown(self, request, context):
|
||||
|
|
Ładowanie…
Reference in New Issue