Use attached defaultProfileName to compose switchy rulelist. Fix #721.

This commit is contained in:
FelisCatus 2016-03-08 15:22:23 +08:00
parent a4a6962432
commit eb3951512d

View File

@ -5,7 +5,10 @@ angular.module('omega').controller 'SwitchProfileCtrl', ($scope, $rootScope,
$scope.ruleListFormats = OmegaPac.Profiles.ruleListFormats
exportRuleList = ->
text = OmegaPac.RuleList.Switchy.compose($scope.profile)
text = OmegaPac.RuleList.Switchy.compose(
rules: $scope.profile.rules
defaultProfileName: $scope.attachedOptions.defaultProfileName
)
eol = '\r\n'
info = '\n'