On 06/10/2015 03:24 PM, Petr Vobornik wrote:
Admins should not modify topology suffices. They are created on
install/upgrade.

part of: https://fedorahosted.org/freeipa/ticket/4997

and with patch...

--
Petr Vobornik
From 3cb93f113aa67ee458e5b4ff422e255f7d0bd64d Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Wed, 10 Jun 2015 15:20:50 +0200
Subject: [PATCH] webui: make topology suffices UI readonly

Admins should not modify topology suffices. They are created on
install/upgrade.

part of: https://fedorahosted.org/freeipa/ticket/4997
---
 install/ui/src/freeipa/topology.js | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js
index f0d44f66d12a350828d653809ac9dee5ad078cb9..3548e23bd632e69e93039ac650b2c1152da2a0a4 100644
--- a/install/ui/src/freeipa/topology.js
+++ b/install/ui/src/freeipa/topology.js
@@ -52,6 +52,7 @@ return {
             $type: 'search',
             disable_facet_tabs: false,
             tabs_in_sidebar: true,
+            no_update: true,
             tab_label: '@mo:topologysuffix.label',
             facet_groups: [topology.search_facet_group],
             facet_group: 'search',
@@ -77,23 +78,21 @@ return {
         },
         {
             $type: 'details',
+            no_update: true,
             sections: [
                 {
                     name: 'details',
                     fields: [
                         'cn',
-                        'iparepltopoconfroot'
+                        {
+                            name: 'iparepltopoconfroot',
+                            read_only: true
+                        }
                     ]
                 }
             ]
         }
-    ],
-    adder_dialog: {
-        fields: [
-            'cn',
-            'iparepltopoconfroot'
-        ]
-    }
+    ]
 };};
 
 
-- 
2.1.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to