Module: Yast::PartitioningEpDmDialogsInclude

Defined in:
../../src/include/partitioning/ep-dm-dialogs.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) DlgEditDmVolume(data)



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File '../../src/include/partitioning/ep-dm-dialogs.rb', line 32

def DlgEditDmVolume(data)
  device = Ops.get_string(data.value, "device", "error")

  aliases = { "FormatMount" => lambda do
    (
      data_ref = arg_ref(data.value);
      _MiniWorkflowStepFormatMount_result = MiniWorkflowStepFormatMount(
        data_ref
      );
      data.value = data_ref.value;
      _MiniWorkflowStepFormatMount_result
    )
  end, "Password" => lambda(
  ) do
    (
      data_ref = arg_ref(data.value);
      _MiniWorkflowStepPassword_result = MiniWorkflowStepPassword(data_ref);
      data.value = data_ref.value;
      _MiniWorkflowStepPassword_result
    )
  end }

  sequence = {
    "FormatMount" => { :next => "Password", :finish => :finish },
    "Password"    => { :finish => :finish }
  }

  # dialog title
  title = Builtins.sformat(_("Edit DM %1"), device)

  widget = MiniWorkflow.Run(
    title,
    StorageIcons.dm_icon,
    aliases,
    sequence,
    "FormatMount"
  )

  widget == :finish
end

- (Object) initialize_partitioning_ep_dm_dialogs(include_target)



28
29
30
# File '../../src/include/partitioning/ep-dm-dialogs.rb', line 28

def initialize_partitioning_ep_dm_dialogs(include_target)
  textdomain "storage"
end