This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {PopoverController} from '@ionic/angular';
|
||||
import {NodeTypeIcons} from '../../../structures/node-types';
|
||||
|
||||
@Component({
|
||||
selector: 'editor-node-picker',
|
||||
@@ -8,14 +9,7 @@ import {PopoverController} from '@ionic/angular';
|
||||
})
|
||||
export class NodePickerComponent implements OnInit {
|
||||
|
||||
public typeIcons = {
|
||||
branch: 'fa fa-folder',
|
||||
node: 'fa fa-quote-left',
|
||||
norm: 'fa fa-quote-left',
|
||||
page: 'fa fa-sticky-note',
|
||||
db: 'fa fa-database',
|
||||
code: 'fa fa-code',
|
||||
};
|
||||
public typeIcons = NodeTypeIcons;
|
||||
|
||||
constructor(
|
||||
private popover: PopoverController,
|
||||
|
||||
@@ -3,6 +3,7 @@ import {IonInput, ModalController} from '@ionic/angular';
|
||||
import {ApiService} from '../../service/api.service';
|
||||
import {BehaviorSubject} from 'rxjs';
|
||||
import {Router} from '@angular/router';
|
||||
import {NodeTypeIcons} from '../../structures/node-types';
|
||||
|
||||
export interface SearchResult {
|
||||
title: string;
|
||||
@@ -26,12 +27,7 @@ export class SearchComponent implements OnInit {
|
||||
@Input() query = '';
|
||||
public results: BehaviorSubject<SearchResult[]> = new BehaviorSubject<SearchResult[]>([]);
|
||||
|
||||
public typeIcons = {
|
||||
node: 'fa fa-quote-left',
|
||||
page: 'fa fa-sticky-note',
|
||||
db: 'fa fa-database',
|
||||
code: 'fa fa-code',
|
||||
};
|
||||
public typeIcons = NodeTypeIcons;
|
||||
|
||||
constructor(
|
||||
protected modal: ModalController,
|
||||
|
||||
Reference in New Issue
Block a user