mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Show correct default state on service settings page
By default a service should be active (ie keys not suspended). For some reason the API is returning the opposite. This commit reverses the logic to make it look right for hack day.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
'title': 'Temporarily suspend API keys',
|
||||
'link': url_for('.service_status_change', service_id=service_id),
|
||||
'destructive': True
|
||||
} if service.active else {
|
||||
} if not service.active else {
|
||||
'title': 'Reactivate API keys',
|
||||
'link': url_for('.service_status_change', service_id=service_id)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user