Skip to content

Commit

Permalink
fix(settings/media-repurposing): fix criteria filters KMCNG-2641
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed May 19, 2024
1 parent cf2d15f commit 86117d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export class CriteriaCreatedComponent implements OnInit{
];

public _timeIntervalOptions: { value: string, label: string }[] = [
{value: 'createdAtLessThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.less')},
{value: 'createdAtGreaterThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.more')}
{value: 'createdAtGreaterThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.less')},
{value: 'createdAtLessThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.more')}
];

public createdTimeUnit = 'day';
public createdTime = 0;
public createdTimeInterval = 'createdAtLessThanOrEqual';
public createdTimeInterval = 'createdAtGreaterThanOrEqual';

@Input() set filter(value: any) {
['createdAtLessThanOrEqual', 'createdAtGreaterThanOrEqual'].forEach(key => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export class CriteriaPlayedComponent implements OnInit{
];

public _timeIntervalOptions: { value: string, label: string }[] = [
{value: 'lastPlayedAtLessThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.less')},
{value: 'lastPlayedAtGreaterThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.more')}
{value: 'lastPlayedAtGreaterThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.less')},
{value: 'lastPlayedAtLessThanOrEqual', label: this._appLocalization.get('applications.settings.mr.criteria.more')}
];

public playedTimeUnit = 'day';
public playedTime = 0;
public playedTimeInterval = 'lastPlayedAtLessThanOrEqual';
public playedTimeInterval = 'lastPlayedAtGreaterThanOrEqual';

@Input() set filter(value: any) {
['lastPlayedAtLessThanOrEqual', 'lastPlayedAtGreaterThanOrEqual'].forEach(key => {
Expand Down

0 comments on commit 86117d2

Please sign in to comment.