Skip to content

Commit

Permalink
add domains filter to webcast and playlist views
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Feb 24, 2021
1 parent 039338c commit 291ae2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/app/modules/entry-webcast/filter/filter.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
[selectedFilters]="_selectedValues['playbackType']"
(itemSelected)="_onItemSelected($event, 'playbackType')"
(itemUnselected)="_onItemUnselected($event, 'playbackType')"></app-checkboxes-list-filter>

</div>

<div class="kFilterContainerCol" *ngIf="_viewConfig.owners">
Expand All @@ -39,6 +40,13 @@
[selectedFilters]="_selectedValues['countries']"
(itemSelected)="_onItemSelected($event, 'countries')"
(itemUnselected)="_onItemUnselected($event, 'countries')"></app-country-filter>

<app-domains-filters *ngIf="_viewConfig?.domains" style="margin-top: 24px"
[expandWidth]="!showAutocompleteGroup"
[dateFilter]="_dateFilter"
[selectedFilters]="_selectedValues['domains']"
(itemSelected)="_onItemSelected($event, 'domains')"></app-domains-filters>

</div>

<div class="kFilterContainerCol">
Expand Down
11 changes: 6 additions & 5 deletions src/app/modules/entry-webcast/filter/filter.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ app-owners-filter, app-category-filter, app-country-filter, app-webcast-device-f
padding-right: 24px;
}

app-webcast-device-filter, app-webcast-browser-filter {
margin-bottom: 24px;
}

:host ::ng-deep {

app-autocomplete-filter, app-dropdown-filter {
app-autocomplete-filter {
margin: 0;
}

app-dropdown-filter {
margin: 0;
margin-bottom: 24px;
}

.ui-autocomplete-multiple-container {
Expand Down
2 changes: 2 additions & 0 deletions src/configuration/view-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export const viewsConfig = {
owners: {},
devices: {},
browsers: {},
domains: {},
os: {},
geo: {}
}
Expand All @@ -215,6 +216,7 @@ export const viewsConfig = {
tags: {},
owners: {},
categories: {},
domains: {},
geo: {},
},
details: {},
Expand Down

0 comments on commit 291ae2f

Please sign in to comment.