Fixed the display of Enable button of module changed to Disable.
* bug/1717153 Enable button of module changed to Disable. Change-Id: Icdd5a8794a5e2e860689f31e267425258a7fc666 Closes-bug: #1717153
This commit is contained in:
parent
f4cd040748
commit
44de4ca90d
|
@ -45,18 +45,32 @@ class ToggleEnabledModule(tables.BatchAction):
|
|||
|
||||
@staticmethod
|
||||
def action_present(count):
|
||||
return ungettext_lazy(
|
||||
u"Enable Module",
|
||||
u"Disable Module",
|
||||
count
|
||||
return (
|
||||
ungettext_lazy(
|
||||
u"Enable Module",
|
||||
u"Enable Modules",
|
||||
count
|
||||
),
|
||||
ungettext_lazy(
|
||||
u"Disable Module",
|
||||
u"Disable Modules",
|
||||
count
|
||||
),
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def action_past(count):
|
||||
return ungettext_lazy(
|
||||
u"Enabled Module",
|
||||
u"Disabled Module",
|
||||
count
|
||||
return (
|
||||
ungettext_lazy(
|
||||
u"Enabled Module",
|
||||
u"Enabled Modules",
|
||||
count
|
||||
),
|
||||
ungettext_lazy(
|
||||
u"Disabled Module",
|
||||
u"Disabled Modules",
|
||||
count
|
||||
),
|
||||
)
|
||||
|
||||
def allowed(self, request, module=None):
|
||||
|
|
Loading…
Reference in New Issue