Customer detail page changes

* Refactor code regarding override fields
 * Add *_override_at columns in customer table (migration)
 * Add *_override_at, *_override_by computed fields
   when updating customer
 * Rename compliance types to match override fields (migration)
 * Remove cross_ref compliance_type (migrations)
 * Populate customer object with usernames for every
   filled *_override_by field (users API)
This commit is contained in:
goga-m 2017-09-29 20:14:40 +03:00 committed by Josh Harvey
parent 409269d23d
commit 84bc84e7c1
3 changed files with 94 additions and 63 deletions

View file

@ -38298,12 +38298,12 @@ var _user$project$Customer_View$customerActions = F2(
{
ctor: '::',
_0: _elm_lang$html$Html_Events$onClick(
A3(_user$project$Customer_Types$PatchCustomer, id, 'authorizedOverride', 'automatic')),
A3(_user$project$Customer_Types$PatchCustomer, id, 'authorizedOverride', 'blocked')),
_1: {ctor: '[]'}
},
{
ctor: '::',
_0: _elm_lang$html$Html$text('Unblock'),
_0: _elm_lang$html$Html$text('Block'),
_1: {ctor: '[]'}
});
}