From 6b153ba876edf1ed9249ed29420a4af2b2e1830d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 10 Jun 2015 14:44:09 +0200 Subject: topology: restrict direction changes topology plugin doesn't properly handle: - creation of segment with direction 'none' and then upgrade to other direction - downgrade of direction These situations are now forbidden in API. part of: https://fedorahosted.org/freeipa/ticket/4302 Reviewed-By: Martin Babinsky --- install/ui/src/freeipa/topology.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'install') diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js index 20c78cb16..c8a8acbe9 100644 --- a/install/ui/src/freeipa/topology.js +++ b/install/ui/src/freeipa/topology.js @@ -127,14 +127,7 @@ return { other_field: 'cn', z_index: 1 }, - { - $type: 'radio', - name: 'iparepltoposegmentdirection', - options: IPA.create_options([ - 'both', 'left-right', 'right-left', 'none' - ]), - default_value: 'both' - } + 'iparepltoposegmentdirection' ] }, { @@ -180,7 +173,7 @@ return { $type: 'radio', name: 'iparepltoposegmentdirection', options: IPA.create_options([ - 'both', 'left-right', 'right-left', 'none' + 'both', 'left-right', 'right-left' ]), default_value: 'both' } -- cgit