summaryrefslogtreecommitdiffstats
path: root/public/src/app/rule-frame/rule-frame.component.ts
blob: 2729c14b06a09806cbee2409b3f687088c103e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Component, Input, OnDestroy } from '@angular/core';
import { Store } from '../store/store';

@Component({
  selector: 'app-rule-frame',
  templateUrl: './rule-frame.component.html',
  styleUrls: ['./rule-frame.component.scss']
})
export class RuleFrameComponent implements OnDestroy {
  expandSetting = false;
  configuration;
  mappingTarget: string;
  showHeaderBtn = true;
  @Input() tabName: string;
  // @ViewChild(BarIconsComponent) barFormsRef: BarIconsComponent;

  constructor(public store: Store) {
    this.store.isLeftVisible = true;
  }

  ngOnDestroy() {}

  onChangeMapping(configurationKey) {
    console.log('changing ifrmae entry', configurationKey);
  }

  isPropertyDdl(property) {
    return property.hasOwnProperty('constraints');
  }

  enableSetting() {
    this.expandSetting = !this.expandSetting;
  }
}