frontend/src/app/components/editor/node-picker/node-picker.component.ts

25 lines
565 B
TypeScript
Raw Normal View History

2020-02-08 22:33:31 +00:00
import { Component, OnInit } from '@angular/core';
2020-02-09 05:09:46 +00:00
import {PopoverController} from '@ionic/angular';
2020-10-14 13:47:03 +00:00
import {NodeTypeIcons} from '../../../structures/node-types';
2020-02-08 22:33:31 +00:00
@Component({
selector: 'editor-node-picker',
templateUrl: './node-picker.component.html',
styleUrls: ['./node-picker.component.scss'],
})
export class NodePickerComponent implements OnInit {
2020-10-14 13:47:03 +00:00
public typeIcons = NodeTypeIcons;
2020-02-09 05:09:46 +00:00
constructor(
private popover: PopoverController,
) { }
2020-02-08 22:33:31 +00:00
ngOnInit() {}
2020-02-09 05:09:46 +00:00
onSelect(value: string) {
this.popover.dismiss(value).then(() => {});
}
2020-02-08 22:33:31 +00:00
}