diff --git a/docker/routlin-dash/app/action_actions.py b/docker/routlin-dash/app/action_actions.py index fd4375c..c460ba9 100644 --- a/docker/routlin-dash/app/action_actions.py +++ b/docker/routlin-dash/app/action_actions.py @@ -9,17 +9,17 @@ bp = Blueprint('action_actions', __name__) _VIEW = '/view/view_actions' -@bp.route('/action/actions_cardoptions_save', methods=['POST']) +@bp.route('/action/actions_cardpending_save', methods=['POST']) @require_level('administrator') -def actions_cardoptions_save(): +def actions_cardpending_save(): session['apply_changes_immediately'] = 'apply_changes_immediately' in request.form flash('Preference saved.', 'success') return redirect(_VIEW) -@bp.route('/action/actions_cardpendingchanges_applynow', methods=['POST']) +@bp.route('/action/actions_cardpending_applynow', methods=['POST']) @require_level('administrator') -def actions_cardpendingchanges_applynow(): +def actions_cardpending_applynow(): if not get_dashboard_pending(): flash('No pending changes to apply.', 'info') return redirect(_VIEW) @@ -36,9 +36,9 @@ def actions_cardpendingchanges_applynow(): return redirect(_VIEW) -@bp.route('/action/actions_cardpendingchanges_revertselected', methods=['POST']) +@bp.route('/action/actions_cardpending_revertselected', methods=['POST']) @require_level('administrator') -def actions_cardpendingchanges_revertselected(): +def actions_cardpending_revertselected(): selected_uuids = request.form.getlist('selected_uuids') if not selected_uuids: flash('No items selected.', 'info') diff --git a/docker/routlin-dash/data/page_content.json b/docker/routlin-dash/data/page_content.json index 173db6c..c265b67 100644 --- a/docker/routlin-dash/data/page_content.json +++ b/docker/routlin-dash/data/page_content.json @@ -608,7 +608,7 @@ "items": [ { "type": "form", - "action": "/action/actions_cardpendingchanges_applynow", + "action": "/action/actions_cardpending_applynow", "method": "post", "items": [ { @@ -620,13 +620,13 @@ "items": [ { "type": "button_primary", - "formaction": "/action/actions_cardpendingchanges_applynow", + "formaction": "/action/actions_cardpending_applynow", "text": "Apply Now", "disabled": "%NO_PENDING%" }, { "type": "button_secondary", - "formaction": "/action/actions_cardpendingchanges_revertselected", + "formaction": "/action/actions_cardpending_revertselected", "text": "Revert Selected" } ] @@ -638,7 +638,7 @@ }, { "type": "form", - "action": "/action/actions_cardoptions_save", + "action": "/action/actions_cardpending_save", "method": "post", "items": [ { @@ -654,7 +654,7 @@ "items": [ { "type": "button_primary", - "action": "/action/actions_cardoptions_save", + "action": "/action/actions_cardpending_save", "method": "post", "text": "Save" },