[yast-commit] r46792 - /branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp
Author: aschnell Date: Thu Apr 17 16:35:08 2008 New Revision: 46792 URL: http://svn.opensuse.org/viewcvs/yast?rev=46792&view=rev Log: - also show unused disks Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp?rev=46792&r1=46791&r2=46792&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-unused.ycp Thu Apr 17 16:35:08 2008 @@ -15,7 +15,12 @@ if (part == nil) { - // TODO: also show disk without any partitions + if (size(disk["partitions"]:[]) == 0 && + disk["used_by_type"]:`UB_NONE == `UB_NONE) + { + return `show; + } + return `follow; } else @@ -43,7 +48,7 @@ UI::ReplaceWidget(`tree_panel, `VBox( - `Left(`Heading("Unused devices")), + `Left(`Heading(_("Unused Devices"))), `Table(`id(`table), `opt(`keepSorting), header, table_list) )); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org