-
Notifications
You must be signed in to change notification settings - Fork 1
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 #6085 from deNBI/refacotr/pi_countt_and_faster_app…
…lication_loading Refacotr/pi countt and faster application loading
- Loading branch information
Showing
55 changed files
with
3,947 additions
and
3,812 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
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
49 changes: 49 additions & 0 deletions
49
src/app/applications/application-card/application-card.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,49 @@ | ||
<tr> | ||
<td> | ||
<app-application-badges | ||
[application]="application"></app-application-badges> | ||
</td> | ||
<td>{{ application?.project_application_name }}</td> | ||
<td>{{ application?.project_application_shortname }}</td> | ||
<td>{{ application?.project_application_date_submitted }}</td> | ||
<td style="word-wrap: break-word; min-width: 110px; max-width: 130px; white-space: normal"> | ||
@if (application?.project_application_user?.username) { | ||
{{ application?.project_application_user?.username }} | ||
} @else { | ||
<span class="spinner-border text-info"></span> | ||
|
||
} | ||
|
||
</td> | ||
<td>{{ application?.project_application_institute }}</td> | ||
|
||
@if (voView) { | ||
|
||
<app-application-vo-actions (switchCollapseEvent)="switchCollaps()" class="table-line" | ||
[application]="application" | ||
[tabState]="tabState" [computeCenters]="computeCenters" | ||
(reloadNumbersTrigger)="triggerReloadNumbers()" | ||
(removeApplicationTrigger)="triggerRemoveApplication()"></app-application-vo-actions> | ||
} @else if (facilityView) { | ||
<app-application-facility-actions (switchCollapseEvent)="switchCollaps()" class="table-line" | ||
[application]="application" | ||
[tabState]="tabState" | ||
(reloadNumbersTrigger)="triggerReloadNumbers()" | ||
(removeApplicationTrigger)="triggerRemoveApplication()"></app-application-facility-actions> | ||
} | ||
|
||
</tr> | ||
<td colspan="12"> | ||
@if (!isCollapsed) { | ||
|
||
<app-application-detail | ||
[class.collapse_no_margin]="isCollapsed | ||
" | ||
[class.collapse]="isCollapsed | ||
" | ||
[application]="application" | ||
></app-application-detail> | ||
} | ||
</td> | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
src/app/applications/application-card/application-card.component.scss
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,3 @@ | ||
.table-line { | ||
display: contents; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/app/applications/application-card/application-card.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,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ApplicationCardComponent } from './application-card.component'; | ||
|
||
describe('ApplicationCardComponent', () => { | ||
let component: ApplicationCardComponent; | ||
let fixture: ComponentFixture<ApplicationCardComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ApplicationCardComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ApplicationCardComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.