Add files type icons and colors
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-14 09:52:47 -05:00
parent fdeea85450
commit e30e8681e4
13 changed files with 34 additions and 333 deletions

View File

@@ -23,7 +23,7 @@
*ngFor="let node of editorService.immutableNodes"
>
<div class="host-icons">
<i class="type-icon fa" [ngClass]="typeIcons[(node.isNorm() ? 'node' : node.type)] + ' ' + (node.isNorm() ? 'node' : node.type)" title="WYSIWYG Node"></i>
<i class="type-icon fa" [ngClass]="typeIcons[(node.isNorm() ? 'node' : node.type)] + ' ' + (node.isNorm() ? 'node' : node.type)"></i>
<button (click)="onOptionsClick($event, node)">
<i class="fa fa-ellipsis-v" title="Node options"></i>
</button>

View File

@@ -28,6 +28,10 @@ ion-icon.invisible {
&.database_ref {
color: var(--noded-background-db);
}
&.file_ref {
color: var(--noded-background-files);
}
}
.host-add-button {

View File

@@ -97,6 +97,10 @@ export class EditorPage implements OnInit {
popover.onDidDismiss().then(result => {
console.log('adding node', result.data);
if ( !result.data ) {
return;
}
this.editorService.addNode(result.data, position, positionNodeId);
});