Author: aschnell Date: Fri Apr 11 21:25:51 2008 New Revision: 46458 URL: http://svn.opensuse.org/viewcvs/yast?rev=46458&view=rev Log: - show import button only during installation Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp?rev=46458&r1=46457&r2=46458&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Fri Apr 11 21:25:51 2008 @@ -15,6 +15,15 @@ void CreateHdMainPanel(any user_data) { + term frames = `VStackFrames(); + + frames = add(frames, `Frame(_("Detection"), + `VBox( + `HStretch(), + `Left(`PushButton(`id(`rescan), _("Rescan Disks"))) + ) + )); + term tmp = `VBox( `HStretch(), `Left(`PushButton(`id(`iscsi), _("Configure &iSCSI..."))), @@ -28,26 +37,24 @@ tmp = add(tmp, `PushButton(`id(`xpram), _("Configure XPRAM..."))); } + frames = add(frames, `Frame(_("Configuration"), tmp)); + + if (Mode::installation()) + { + frames = add(frames, `Frame(_("Import"), + `VBox( + `HStretch(), + `Left(`PushButton(`id(`fstab), _("Import Mount Points..."))) + ) + )); + } + UI::ReplaceWidget(`tree_panel, Greasemonkey::Transform( `VBox( `HStretch(), - `Left(`Heading("Hard Disks")), - `VStackFrames( - `Frame(_("Detection"), - `VBox( - `HStretch(), - `Left(`PushButton(`id(`rescan), "Rescan Disks")) - ) - ), - `Frame(_("Configuration"), tmp), - `Frame(_("Import"), - `VBox( - `HStretch(), - `Left(`PushButton(`id(`fstab), "Import Mount Points...")) - ) - ) - ), + `Left(`Heading(_("Hard Disks"))), + frames, `VStretch() )) ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org