Changes for eveai_chat_client:
- Session Defaults Header clickable - Document Processing View - show 'Finished Processing' iso 'Processing' to have more logical visual indicators - TRAICIE_SELECTION_SPECIALIST now no longer shows question to start selection procedure at initialisation. - Error Messages for adding documents in 'alert' - Correction of error in Template variable replacement, resulting in missing template variable value
This commit is contained in:
@@ -395,11 +395,11 @@ def add_document():
|
||||
return redirect(prefixed_url_for('document_bp.documents_processing'))
|
||||
|
||||
except EveAIException as e:
|
||||
flash(str(e), 'error')
|
||||
flash(str(e), 'danger')
|
||||
current_app.logger.error(f"Error adding document: {str(e)}")
|
||||
except Exception as e:
|
||||
current_app.logger.error(f'Error adding document: {str(e)}')
|
||||
flash('An error occurred while adding the document.', 'error')
|
||||
flash('An error occurred while adding the document.', 'danger')
|
||||
|
||||
return render_template('document/add_document.html', form=form)
|
||||
|
||||
@@ -501,7 +501,7 @@ def handle_document_selection():
|
||||
try:
|
||||
doc_id = ast.literal_eval(document_identification).get('value')
|
||||
except (ValueError, AttributeError):
|
||||
flash('Invalid document selection.', 'error')
|
||||
flash('Invalid document selection.', 'danger')
|
||||
return redirect(prefixed_url_for('document_bp.documents'))
|
||||
|
||||
action = request.form['action']
|
||||
|
||||
Reference in New Issue
Block a user