From a3bf615ca3fdcb40b29872e98451e3a7d4538fe7 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Tue, 2 Oct 2018 13:15:54 +0900 Subject: [PATCH] Use initial maps for supported network and volume drivers Change-Id: I03e934082261a64679e1ebba0ed742e0d26fc206 --- .../cluster-templates/workflow/workflow.service.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/magnum_ui/static/dashboard/container-infra/cluster-templates/workflow/workflow.service.js b/magnum_ui/static/dashboard/container-infra/cluster-templates/workflow/workflow.service.js index 84a78baf..15e7235c 100644 --- a/magnum_ui/static/dashboard/container-infra/cluster-templates/workflow/workflow.service.js +++ b/magnum_ui/static/dashboard/container-infra/cluster-templates/workflow/workflow.service.js @@ -331,11 +331,7 @@ { key: 'volume_driver', type: 'select', - titleMap: [ - {value: '', name: gettext('Choose a Volume Driver')}, - {value: 'cinder', name: gettext('Cinder')}, - {value: 'rexray', name: gettext('Rexray')} - ] + titleMap: supportedVolumeDrivers.initial } ] }, @@ -393,11 +389,7 @@ { key: 'network_driver', type: 'select', - titleMap: [ - {value: "", name: gettext("Choose a Network Driver")}, - {value: "docker", name: gettext("Docker")}, - {value: "flannel", name: gettext("Flannel")} - ] + titleMap: supportedNetworkDrivers.initial }, { key: 'http_proxy'