Merge "Added small block to remove default panels"
This commit is contained in:
commit
d33b65aad2
@ -173,6 +173,17 @@ Or just remove it entirely::
|
|||||||
|
|
||||||
projects_dashboard.unregister(instances_panel.__class__)
|
projects_dashboard.unregister(instances_panel.__class__)
|
||||||
|
|
||||||
|
You cannot unregister a ``default_panel``. If you wish to remove a
|
||||||
|
``default_panel``, you need to make a different panel in the dashboard as a
|
||||||
|
``default_panel`` and then unregister the former. For example, if you wished
|
||||||
|
to remove the ``overview_panel`` from the ``Project`` dashboard, you could do
|
||||||
|
the following::
|
||||||
|
|
||||||
|
project = horizon.get_dashboard('project')
|
||||||
|
project.default_panel = "instances"
|
||||||
|
overview = project.get_panel('overview')
|
||||||
|
project.unregister(overview.__class__)
|
||||||
|
|
||||||
You can also override existing methods with your own versions::
|
You can also override existing methods with your own versions::
|
||||||
|
|
||||||
# Disable Floating IPs
|
# Disable Floating IPs
|
||||||
|
Loading…
Reference in New Issue
Block a user