Condition type - show help not showing help #76

This commit is contained in:
proxy.zeroomega 2025-01-13 09:02:05 +08:00
parent 1b2d20b4cb
commit 0fd0a945b2
2 changed files with 3 additions and 3 deletions

View File

@ -129,14 +129,14 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget,
$window.top.close()
$scope.openConditionHelp = ->
pname = encodeURIComponent($scope.currentProfileName)
$scope.openOptions("#/profile/#{pname}?help=condition")
$scope.openOptions("#!/profile/#{pname}?help=condition")
$scope.applyProfile = (profile) ->
next = ->
if profile.profileType == 'SwitchProfile'
return omegaTarget.state('web.switchGuide').then (switchGuide) ->
if switchGuide == 'showOnFirstUse'
return $scope.openOptions("#/profile/#{profile.name}")
return $scope.openOptions("#!/profile/#{profile.name}")
if not refreshOnProfileChange
omegaTarget.applyProfileNoReply(profile.name)
apply = next()

View File

@ -167,7 +167,7 @@ html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
| {{'Add temp condition'}}
button.btn.btn-primary(type='submit' ng-show='!!currentProfileCanAddRule') {{'popup_addCondition' | tr}}
button.btn.btn-default.pull-right(type='button' ng-show='!currentProfileCanAddRule'
ng-click='openOptions("#/general")') {{'popup_configureMonitorWebRequests' | tr}}
ng-click='openOptions("#!/general")') {{'popup_configureMonitorWebRequests' | tr}}
script(src='js/log_error.js')
script(src='lib/iframeResizer/iframeResizer.contentWindow.min.js')