Author: gs
Date: Wed Jun 8 13:22:46 2011
New Revision: 64269
URL: http://svn.opensuse.org/viewcvs/yast?rev=64269&view=rev
Log:
don't show tab 'services' in initial stage
Modified:
trunk/fcoe-client/src/wizards.ycp
Modified: trunk/fcoe-client/src/wizards.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/wizards.ycp?rev=64269&r1=64268&r2=64269&view=diff
==============================================================================
--- trunk/fcoe-client/src/wizards.ycp (original)
+++ trunk/fcoe-client/src/wizards.ycp Wed Jun 8 13:22:46 2011
@@ -74,42 +74,65 @@
"store" : StoreConfigurationDialog,
],
];
- map tabs =
- $[
- "services" : $[
- // Header of tab in tab widget
- "header" : _("&Services"),
- "widget_names" : ["serv"],
- "contents" : ServicesDialogContent(),
- ],
- "interfaces" : $[
- // Header of tab in tab widget
- "header" : _("&Interfaces"),
- "widget_names" : ["inter"],
- "contents" : InterfacesDialogContent(),
- ],
- "configuration" : $[
- // Header of tab in tab widget
- "header" : _("&Configuration"),
- "widget_names" : ["config"],
- "contents" : ConfigurationDialogContent(),
- ],
- ];
-
+ map tabs = $[];
+ list tab_order = [];
string ini_tab = "";
- map status_map = FcoeClient::GetStartStatus();
-
- if ( status_map["fcoe"]:false == true || status_map["lldpad"]:false == true )
+ if ( Stage::initial() )
+ {
+ tabs = $[
+ "interfaces" : $[
+ // Header of tab in tab widget
+ "header" : _("&Interfaces"),
+ "widget_names" : ["inter"],
+ "contents" : InterfacesDialogContent(),
+ ],
+ "configuration" : $[
+ // Header of tab in tab widget
+ "header" : _("&Configuration"),
+ "widget_names" : ["config"],
+ "contents" : ConfigurationDialogContent(),
+ ],
+ ];
ini_tab = "interfaces";
+ tab_order = [ "interfaces", "configuration"];
+ }
else
- ini_tab = "services";
+ {
+ tabs = $[
+ "services" : $[
+ // Header of tab in tab widget
+ "header" : _("&Services"),
+ "widget_names" : ["serv"],
+ "contents" : ServicesDialogContent(),
+ ],
+ "interfaces" : $[
+ // Header of tab in tab widget
+ "header" : _("&Interfaces"),
+ "widget_names" : ["inter"],
+ "contents" : InterfacesDialogContent(),
+ ],
+ "configuration" : $[
+ // Header of tab in tab widget
+ "header" : _("&Configuration"),
+ "widget_names" : ["config"],
+ "contents" : ConfigurationDialogContent(),
+ ],
+ ];
+
+ map status_map = FcoeClient::GetStartStatus();
+ if ( status_map["fcoe"]:false == true || status_map["lldpad"]:false == true )
+ ini_tab = "interfaces";
+ else
+ ini_tab = "services";
+ tab_order = ["services", "interfaces", "configuration"];
+ }
map wd =
$[
"tab" : CWMTab::CreateWidget (
$[
- "tab_order" : ["services", "interfaces", "configuration"],
+ "tab_order" : tab_order,
"tabs" : tabs,
"widget_descr" : widgets,
"initial_tab" : ini_tab,
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org