summaryrefslogtreecommitdiffstats
path: root/public/src/app/rule-frame/rule-frame.component.ts
blob: 4d5f999bb44b319445ece6e7a022cc4b8595c2de (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
35
import { Component, OnDestroy, Input, ViewChild } from '@angular/core';
import { Store } from '../store/store';
import { BarIconsComponent } from '../bar-icons/bar-icons.component';

@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;
  }
}