Make OC edit warning modal cancel button redirect user to OC list [OFN-12774]

This commit is contained in:
wandji20
2024-08-16 14:11:55 +01:00
committed by Sigmund Petersen
parent 099da3fc6c
commit a11873559b
2 changed files with 26 additions and 2 deletions

View File

@@ -11,8 +11,7 @@
= t('.proceed')
%button.button.secondary{ "ng-click": "submit($event, '#{main_app.admin_order_cycles_path}')", type: "button", style: "display: none;", data: { action: 'click->modal#close', 'trigger-action': 'saveAndBack' } }
= t('.proceed')
%button.button.primary{ type: "button", 'data-action': 'click->modal#close' }
= t('.cancel')
= link_to t('.cancel'), admin_order_cycles_path, id: 'cancel', class: 'button primary'
- if action == 'bulk_update'
%button.button.secondary{ "ng-click": "saveAll($event)", type: "button", style: "display: none;", data: { action: 'click->modal#close', trigger_action: 'bulk_save' } }