-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b17ab5
commit 3c85923
Showing
7 changed files
with
110 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<h1 mat-dialog-title>Add OR Search</h1> | ||
<div mat-dialog-content> | ||
<div fxFlex> | ||
<app-tag-input [(ngModel)]="tags" [enableOrSearch]="false" placeholder="Tags"></app-tag-input> | ||
</div> | ||
</div> | ||
<div mat-dialog-actions align="end"> | ||
<button mat-button (click)="onNoClick()">Cancel</button> | ||
<button mat-button [mat-dialog-close]="tags" cdkFocusInitial>Add</button> | ||
</div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
src/app/or-search-dialog/or-search-dialog.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { OrSearchDialogComponent } from './or-search-dialog.component'; | ||
|
||
describe('OrSearchDialogComponent', () => { | ||
let component: OrSearchDialogComponent; | ||
let fixture: ComponentFixture<OrSearchDialogComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ OrSearchDialogComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(OrSearchDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
import { HydrusSearchTags } from '../hydrus-tags'; | ||
|
||
@Component({ | ||
selector: 'app-or-search-dialog', | ||
templateUrl: './or-search-dialog.component.html', | ||
styleUrls: ['./or-search-dialog.component.scss'] | ||
}) | ||
export class OrSearchDialogComponent implements OnInit { | ||
|
||
tags: HydrusSearchTags = []; | ||
|
||
constructor(public dialogRef: MatDialogRef<OrSearchDialogComponent>) { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
onNoClick(): void { | ||
this.dialogRef.close(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters