- We want to preserve the existing `credential_type` param that already
exists in `queryset` and not have `defaults
` overwrite it. We first loop through the `defaults` object keys and
check it against the the keys of `queryset` and if the keys match, then
set the value to `queryset[key]`.
This refactor includes the following things:
- Offload credential tag formatting to the parent controller, e.g.
`TemplateListController`.
- Initialize the `Toggle Tag` component in the parent view instead of
the List Item component view.
- Rename some variables for better comprehension.
- Remove existing `switch` logic in favor of Toggle Tag Component, now
with comments!
- Slight adjustment to icons to center vertically; account for
non-standard credential `kind` attributes so icons display as they
should.
- Style the `View More/Less` button accordingly
- Update Toggle Tag directive template to include icons