only show 'unknown backups' if there is no ExtraData
This commit is contained in:
parent
1b6155cf5f
commit
540cf00ede
|
@ -132,6 +132,14 @@ func NewDeployment(configTier config.Tier, configSlot config.Slot, boshDeploymen
|
|||
extraData = append(extraData, dataItem)
|
||||
}
|
||||
}
|
||||
if len(extraData) == 0 {
|
||||
dataItem := Data{
|
||||
Label: "backup status",
|
||||
Value: "unknown",
|
||||
DisplayClass: "icon-arrow-down red",
|
||||
}
|
||||
extraData = append(extraData, dataItem)
|
||||
}
|
||||
|
||||
deployment = &Deployment{
|
||||
Name: name,
|
||||
|
|
|
@ -97,13 +97,6 @@
|
|||
</div>
|
||||
<div class="box-content">
|
||||
<ul class="dashboard-list metro">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-arrow-down red"></i>
|
||||
<strong>unknown</strong>
|
||||
backup status
|
||||
</a>
|
||||
</li>
|
||||
{{range .Releases}}
|
||||
<li>
|
||||
<a href="#">
|
||||
|
|
Loading…
Reference in New Issue