Remove [save & preview] button, the preview is not updated live so it can lead to confusion (#801)

This commit is contained in:
dgtlmoon
2022-08-01 14:47:00 +02:00
committed by GitHub
parent a1c3107cd6
commit 26f5c56ba4
3 changed files with 5 additions and 11 deletions

View File

@@ -634,14 +634,10 @@ def changedetection_app(config=None, datastore_o=None):
update_q.put((1, uuid))
# Diff page [edit] link should go back to diff page
if request.args.get("next") and request.args.get("next") == 'diff' and not form.save_and_preview_button.data:
if request.args.get("next") and request.args.get("next") == 'diff':
return redirect(url_for('diff_history_page', uuid=uuid))
else:
if form.save_and_preview_button.data:
flash('You may need to reload this page to see the new content.')
return redirect(url_for('preview_page', uuid=uuid))
else:
return redirect(url_for('index'))
return redirect(url_for('index'))
else:
if request.method == 'POST' and not form.validate():