Hiding Shop Preferences in enterprise form

This commit is contained in:
Rob Harrington
2014-12-19 12:57:18 +11:00
parent 21e4f40616
commit 24cf3dee74

View File

@@ -56,6 +56,7 @@ angular.module("admin.enterprises")
if newValue == "none"
$scope.menu.hide_item_by_name('Shipping Methods')
$scope.menu.hide_item_by_name('Payment Methods')
$scope.menu.hide_item_by_name('Shop Preferences')
if $scope.Enterprise.is_primary_producer
$scope.menu.show_item_by_name('Enterprise Fees')
else
@@ -63,4 +64,5 @@ angular.module("admin.enterprises")
else
$scope.menu.show_item_by_name('Shipping Methods')
$scope.menu.show_item_by_name('Payment Methods')
$scope.menu.show_item_by_name('Shop Preferences')
$scope.menu.show_item_by_name('Enterprise Fees')