mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Put current email branding in new branding request
When we get a request for new branding it’s helpful to quickly see what the service’s current branding is, so we can get a better sense of why they want to change it.
This commit is contained in:
@@ -363,6 +363,12 @@ class Service():
|
||||
return email_branding_client.get_email_branding(self.email_branding_id)['email_branding']
|
||||
return None
|
||||
|
||||
@cached_property
|
||||
def email_branding_name(self):
|
||||
if self.email_branding is None:
|
||||
return 'GOV.UK'
|
||||
return self.email_branding['name']
|
||||
|
||||
@property
|
||||
def letter_branding_id(self):
|
||||
return self._dict['letter_branding']
|
||||
|
||||
Reference in New Issue
Block a user