Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRPT-708: Adding button for NRIS-EMLI (disabled for now) #840

Merged
merged 1 commit into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions angular/projects/admin-nrpti/src/app/import/import.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h4>Import from Source System</h4>

<div class="row">
<div *ngIf="showSourceSystemEPIC" class="col-md-3 mb-3">
<div *ngIf="showSourceSystemEPIC" class="col-sm mb-3">
<label>Import from EPIC</label>
<div>
<button
Expand All @@ -16,7 +16,7 @@ <h4>Import from Source System</h4>
</button>
</div>
</div>
<div *ngIf="showSourceSystemNRIS" class="col-md-3 mb-3">
<div *ngIf="showSourceSystemNRIS" class="col-sm mb-3">
<label>Import from NRIS</label>
<div>
<button
Expand All @@ -29,7 +29,20 @@ <h4>Import from Source System</h4>
</button>
</div>
</div>
<div *ngIf="showSourceSystemCORE" class="col-md-3 mb-3">
<div *ngIf="showSourceSystemEMLI" class="col-sm mb-3">
<label>Import from EMLI</label>
<div>
<button
type="button"
[disabled]="buttonActions['nris-emli']"
class="btn btn-primary"
(click)="startJob('nris-emli')"
title="Start EMLI import job">
Start Job
</button>
</div>
</div>
<div *ngIf="showSourceSystemCORE" class="col-sm mb-3">
<label>Import from CORE</label>
<div>
<button
Expand All @@ -42,7 +55,7 @@ <h4>Import from Source System</h4>
</button>
</div>
</div>
<div *ngIf="showSourceSystemBCOGC" class="col-md-3 mb-3">
<div *ngIf="showSourceSystemBCOGC" class="col-sm mb-3">
<label>Import from BCOGC</label>
<div>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export class ImportComponent implements OnInit, OnDestroy {
public showSourceSystem = true;
public showSourceSystemEPIC = true;
public showSourceSystemNRIS = true;
public showSourceSystemEMLI = true;
public showSourceSystemCORE = true;
public showSourceSystemBCOGC = true;
public buttonActions = { epic: false, 'nris-epd': false, core: false, bcogc: false };
public buttonActions = { epic: false, 'nris-epd': false, 'nris-emli': true, core: false, bcogc: false };
public tableData: TableObject = new TableObject({ component: ImportTableRowsComponent });
public tableColumns: IColumnObject[] = [
{
Expand Down