aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-03 11:20:34 +0300
committerFrederick Muriuki Muriithi2023-07-03 11:20:34 +0300
commit14f073af864e7d9d94babe2bf094f3079331bb34 (patch)
tree72876281aa41bd391187e262e3044cdb1ea98934 /gn3/auth
parent424a515120478998592663725d2d1186d36304f4 (diff)
downloadgenenetwork3-14f073af864e7d9d94babe2bf094f3079331bb34.tar.gz
Spruce up UI
Make UI somewhat consistent with the GN2 UI.
Diffstat (limited to 'gn3/auth')
-rw-r--r--gn3/auth/authorisation/users/admin/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/auth/authorisation/users/admin/views.py b/gn3/auth/authorisation/users/admin/views.py
index ca4be5f..c9f1887 100644
--- a/gn3/auth/authorisation/users/admin/views.py
+++ b/gn3/auth/authorisation/users/admin/views.py
@@ -189,7 +189,7 @@ def edit_client():
the_client = with_db_connection(partial(
oauth2_client, client_id=uuid.UUID(form["client_id"])))
if the_client.is_nothing():
- flash("No such client.", "alert-error")
+ flash("No such client.", "alert-danger")
return redirect(url_for("oauth2.admin.list_clients"))
the_client = the_client.value
client_metadata = {
@@ -220,7 +220,7 @@ def delete_client():
the_client = with_db_connection(partial(
oauth2_client, client_id=uuid.UUID(form["client_id"])))
if the_client.is_nothing():
- flash("No such client.", "alert-error")
+ flash("No such client.", "alert-danger")
return redirect(url_for("oauth2.admin.list_clients"))
the_client = the_client.value
with_db_connection(partial(_delete_client, client=the_client))