summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-11 10:44:08 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-13 17:38:44 +0200
commit12f74d5a4dbb429813427639aba52b446fddaadc (patch)
treee74bdbc2c512fd28329f76a61b9872a062a97032 /ogcp
parent651589d69091c0bd6a554d1f47133121679615ed (diff)
views: remove duplicated validation errors
Remove flash() error messages after validate_elements(). validate_elements() defines error messages for min and max element selection from sidebar.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 63f57f0..b7552e2 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1272,7 +1272,6 @@ def action_client_update():
else:
ips = parse_elements(request.args.to_dict())
if not validate_elements(ips, max_len=1):
- flash(_('Please, select one client'), category='error')
return redirect(url_for('scopes'))
server = get_server_from_clients(list(ips))
@@ -2983,7 +2982,6 @@ def action_image_delete():
form.ids.data = image_id
form.server.data = params['image-server']
if not validate_elements(images, max_len=1):
- flash(_('Please select one image to delete'), category='error')
return redirect(url_for('images'))
return render_template('actions/delete_image.html', form=form,
image_name=image_name.split('_', 1)[0], image_id=image_id,