From f5eccdc353e33a1924c7bcb348fb4f6cdffc1a34 Mon Sep 17 00:00:00 2001 From: Andy Botting Date: Wed, 14 Aug 2019 14:29:11 +1000 Subject: [PATCH] Remove 'add' button for keypairs on launch The add keypair button referenced a view that it no longer available when using the new angular keypairs panel, otherwise a 'Danger' error is thrown then you try and click it. This commit simply removes the add button as there is no way to get the functionality back when using the angular panel. Change-Id: Iaf7aa5f0805ba91d2f7f9115cc3cf19cf344dd4b --- muranodashboard/dynamic_ui/forms.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/muranodashboard/dynamic_ui/forms.py b/muranodashboard/dynamic_ui/forms.py index c986542c2..fef267ba5 100644 --- a/muranodashboard/dynamic_ui/forms.py +++ b/muranodashboard/dynamic_ui/forms.py @@ -55,11 +55,6 @@ TYPES.update({ 'volume': fields.VolumeChoiceField }) -KEYPAIR_IMPORT_URL = "horizon:project:key_pairs:import" -TYPES_KWARGS = { - 'keypair': {'add_item_link': KEYPAIR_IMPORT_URL} -} - def _collect_fields(field_specs, form_name, service): def process_widget(cls, kwargs): @@ -121,7 +116,6 @@ def _collect_fields(field_specs, form_name, service): if isinstance(_type, list): # make list keys hashable for TYPES dict _type = tuple(_type) _ignorable, kwargs = parse_spec(field_spec) - kwargs.update(TYPES_KWARGS.get(_type, {})) cls, kwargs['widget'] = process_widget(TYPES[_type], kwargs) cls = cls.finalize_properties(kwargs, form_name, service)