mistral-dashboard:fixed boolean field design bug
* boolean field design - removed the false check from detail screens, it is actually a bug: false is a valid value - and has a matching design. Change-Id: Ifbec1757026f69abe6035ca35d0275c534e09b71
This commit is contained in:
parent
6c6346f9a0
commit
91fac9f1b1
@ -75,7 +75,6 @@ class OverviewView(generic.TemplateView):
|
|||||||
)
|
)
|
||||||
if action_execution.state:
|
if action_execution.state:
|
||||||
action_execution.state = utils.label(action_execution.state)
|
action_execution.state = utils.label(action_execution.state)
|
||||||
if action_execution.accepted:
|
|
||||||
action_execution.accepted = utils.booleanfield(
|
action_execution.accepted = utils.booleanfield(
|
||||||
action_execution.accepted
|
action_execution.accepted
|
||||||
)
|
)
|
||||||
|
@ -113,7 +113,6 @@ class DetailView(generic.TemplateView):
|
|||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(DetailView, self).get_context_data(**kwargs)
|
context = super(DetailView, self).get_context_data(**kwargs)
|
||||||
action = self.get_data(self.request, **kwargs)
|
action = self.get_data(self.request, **kwargs)
|
||||||
if action.is_system:
|
|
||||||
action.is_system = utils.booleanfield(action.is_system)
|
action.is_system = utils.booleanfield(action.is_system)
|
||||||
breadcrumb = [(action.name, reverse(
|
breadcrumb = [(action.name, reverse(
|
||||||
'horizon:mistral:actions:detail',
|
'horizon:mistral:actions:detail',
|
||||||
|
Loading…
Reference in New Issue
Block a user