forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CST-12145] get qa-sources by target for item-page & refactor
- Loading branch information
1 parent
8e0af9b
commit d31dc4d
Showing
12 changed files
with
94 additions
and
61 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
19 changes: 12 additions & 7 deletions
19
src/app/item-page/simple/qa-event-notification/qa-event-notification.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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<ng-container *ngIf="(events$ | async)?.length > 0"> | ||
<div class="alert alert-info d-flex flex-row"> | ||
<img class="notify-logo" src="assets/images/notify-coar-icon.png" alt="Repository logo"> | ||
<div class="w-100 d-flex justify-content-between"> | ||
<div class="pl-4 align-self-center">{{'item.qa-event-notification.check.notification-info' | translate : {num: (events$ | async)?.length} }} </div> | ||
<button [routerLink]="['/admin/notifications/quality-assurance', source, item.id]" class="btn btn-primary align-self-center">{{'item.qa-event-notification-info.check.button' | translate }}</button> | ||
<ng-container *ngIf="(getQualityAssuranceSources$() | async)?.length > 0"> | ||
<ng-container *ngFor="let source of (getQualityAssuranceSources$() | async)"> | ||
<div class="alert alert-info d-flex flex-row" *ngIf="source.totalEvents > 0"> | ||
<img class="source-logo" src="assets/images/qa-{{(source.id | dsSplit: ':')[0]}}-logo.png" alt="{{source.id}} logo"> | ||
<div class="w-100 d-flex justify-content-between"> | ||
<div class="pl-4 align-self-center">{{'item.qa-event-notification.check.notification-info' | translate : {num: | ||
source.totalEvents } }} </div> | ||
<button [routerLink]="['/admin/notifications/quality-assurance', source, item.id]" | ||
class="btn btn-primary align-self-center">{{'item.qa-event-notification-info.check.button' | translate | ||
}}</button> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
</ng-container> |
2 changes: 1 addition & 1 deletion
2
src/app/item-page/simple/qa-event-notification/qa-event-notification.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.notify-logo { | ||
.source-logo { | ||
max-height: var(--ds-header-logo-height); | ||
} | ||
|
||
|
60 changes: 14 additions & 46 deletions
60
src/app/item-page/simple/qa-event-notification/qa-event-notification.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
27 changes: 22 additions & 5 deletions
27
...e-page/my-dspace-qa-events-notifications/my-dspace-qa-events-notifications.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
2 changes: 1 addition & 1 deletion
2
...e-page/my-dspace-qa-events-notifications/my-dspace-qa-events-notifications.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
.notify-logo { | ||
.source-logo { | ||
max-height: var(--ds-header-logo-height); | ||
} | ||
|
||
|
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,12 @@ | ||
import { Pipe, PipeTransform } from '@angular/core'; | ||
|
||
@Pipe({ | ||
name: 'dsSplit' | ||
}) | ||
export class SplitPipe implements PipeTransform { | ||
|
||
transform(value: string, separator: string): string[] { | ||
return value.split(separator); | ||
} | ||
|
||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.