-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from NeoScript/add_multi_project_support
Add multi project support
- Loading branch information
Showing
9 changed files
with
85 additions
and
13 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
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
9 changes: 9 additions & 0 deletions
9
webapp/src/app/components/input-dialog/input-dialog.component.html
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,9 @@ | ||
<mat-dialog-content> | ||
<mat-form-field appearance="outline" color="accent"> | ||
<mat-label>Enter a value</mat-label> | ||
<input matInput type="text" autocomplete="off" [formControl]="input"> | ||
</mat-form-field> | ||
</mat-dialog-content> | ||
<mat-dialog-actions> | ||
<button mat-raised-button [disabled]="input.invalid" (click)="save()">save</button> | ||
</mat-dialog-actions> |
Empty file.
23 changes: 23 additions & 0 deletions
23
webapp/src/app/components/input-dialog/input-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 { InputDialogComponent } from './input-dialog.component'; | ||
|
||
describe('InputDialogComponent', () => { | ||
let component: InputDialogComponent; | ||
let fixture: ComponentFixture<InputDialogComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [InputDialogComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(InputDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
27 changes: 27 additions & 0 deletions
27
webapp/src/app/components/input-dialog/input-dialog.component.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,27 @@ | ||
import { Component } from '@angular/core'; | ||
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatDialogModule, MatDialogRef } from '@angular/material/dialog'; | ||
import { MatFormFieldModule } from '@angular/material/form-field'; | ||
import { MatInputModule } from '@angular/material/input'; | ||
|
||
@Component({ | ||
selector: 'app-input-dialog', | ||
standalone: true, | ||
imports: [MatDialogModule, MatButtonModule, MatInputModule, ReactiveFormsModule, MatFormFieldModule], | ||
templateUrl: './input-dialog.component.html', | ||
styleUrl: './input-dialog.component.scss' | ||
}) | ||
export class InputDialogComponent { | ||
|
||
input = new FormControl('', Validators.required) | ||
|
||
constructor(private dialogRef: MatDialogRef<InputDialogComponent>){ | ||
|
||
} | ||
|
||
save(){ | ||
this.dialogRef.close({project_id: this.input.value}) | ||
} | ||
|
||
} |
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