Browse Source

UI: Fixed sort order rule chain

pull/8638/head
Artem Dzhereleiko 3 years ago
parent
commit
92fa873215
  1. 6
      ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts

6
ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.ts

@ -32,6 +32,7 @@ import { RuleChain, RuleChainType } from '@shared/models/rule-chain.models';
import { RuleChainService } from '@core/http/rule-chain.service'; import { RuleChainService } from '@core/http/rule-chain.service';
import { isDefinedAndNotNull } from '@core/utils'; import { isDefinedAndNotNull } from '@core/utils';
import { coerceBoolean } from '@shared/decorators/coercion'; import { coerceBoolean } from '@shared/decorators/coercion';
import { Direction } from '@shared/models/page/sort-order';
// @dynamic // @dynamic
@Component({ @Component({
@ -84,7 +85,10 @@ export class RuleChainSelectComponent implements ControlValueAccessor, OnInit {
ngOnInit() { ngOnInit() {
const pageLink = new PageLink(100); const pageLink = new PageLink(100, 0, null, {
property: 'name',
direction: Direction.ASC
});
this.ruleChains$ = this.getRuleChains(pageLink).pipe( this.ruleChains$ = this.getRuleChains(pageLink).pipe(
map((pageData) => pageData.data), map((pageData) => pageData.data),

Loading…
Cancel
Save