Skip to content

Commit

Permalink
Merge 97e5323 into 5d88f76
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 8, 2019
2 parents 5d88f76 + 97e5323 commit 3b9ec2e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/y2network/widgets/ip4_forwarding.rb
@@ -1,4 +1,5 @@
require "cwm/common_widgets"
Yast.import "NetworkService"

module Y2Network
module Widgets
Expand All @@ -11,6 +12,7 @@ def initialize(config)

def init
self.value = @config.routing.forward_ipv4
disable if Yast::NetworkService.network_manager?
end

def store
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2network/widgets/ip6_forwarding.rb
@@ -1,4 +1,5 @@
require "cwm/common_widgets"
Yast.import "NetworkService"

module Y2Network
module Widgets
Expand All @@ -11,6 +12,7 @@ def initialize(config)

def init
self.value = @config.routing.forward_ipv6
disable if Yast::NetworkService.network_manager?
end

def store
Expand Down
14 changes: 13 additions & 1 deletion src/lib/y2network/widgets/routing_buttons.rb
Expand Up @@ -2,7 +2,7 @@
require "y2network/dialogs/route"
require "y2network/route"

Yast.import "Routing"
Yast.import "NetworkService"

module Y2Network
module Widgets
Expand All @@ -24,6 +24,10 @@ def handle

nil
end

def init
disable if Yast::NetworkService.network_manager?
end
end

class EditRoute < CWM::PushButton
Expand All @@ -46,6 +50,10 @@ def handle

nil
end

def init
disable if Yast::NetworkService.network_manager?
end
end

class DeleteRoute < CWM::PushButton
Expand All @@ -65,6 +73,10 @@ def handle

nil
end

def init
disable if Yast::NetworkService.network_manager?
end
end
end
end
2 changes: 2 additions & 0 deletions src/lib/y2network/widgets/routing_table.rb
Expand Up @@ -4,6 +4,7 @@
require "y2network/interface"

Yast.import "Label"
Yast.import "NetworkService"

module Y2Network
module Widgets
Expand Down Expand Up @@ -40,6 +41,7 @@ def items
# TODO: just workaround to make it work with old hash based CWM
def init
redraw_table
disable if Yast::NetworkService.network_manager?
end

def selected_route
Expand Down

0 comments on commit 3b9ec2e

Please sign in to comment.