Skip to content

Commit 0c983a6

Browse files
authored
Fix/affiliated institutions (CenterForOpenScience#344)
* fix(metadata): updated metadata * fix(metadata): fixes * fix(my-profile): fixed route * fix(models): updated some models * fix(tests): fixed unit tests * fix(institutions): updated institutions * fix(my-projects): bookmarks * fix(institutions): updated affiliated institutions and fixed some bugs * fix(tests): fixed tests * fix(tests): updated if statement * fix(bugs): fixed some bugs * fix(files): updated files
1 parent 4c38cd8 commit 0c983a6

19 files changed

Lines changed: 47 additions & 112 deletions

src/app/features/files/components/create-folder-dialog/create-folder-dialog.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111

1212
<div class="flex justify-content-end gap-2">
1313
<p-button
14-
type="button"
1514
severity="secondary"
1615
[label]="'common.buttons.cancel' | translate"
17-
(click)="dialogRef.close()"
16+
(onClick)="dialogRef.close()"
1817
></p-button>
1918
<p-button type="submit" [label]="'common.buttons.create' | translate" [disabled]="!folderForm.valid"></p-button>
2019
</div>

src/app/features/files/components/edit-file-metadata-dialog/edit-file-metadata-dialog.component.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,7 @@
3939
</div>
4040

4141
<div class="flex btn-full-width gap-2 mt-4">
42-
<p-button
43-
[label]="'common.buttons.cancel' | translate"
44-
severity="info"
45-
class="w-full"
46-
(click)="cancel()"
47-
type="button"
48-
/>
42+
<p-button [label]="'common.buttons.cancel' | translate" severity="info" class="w-full" (onClick)="cancel()" />
4943
<p-button
5044
[label]="'common.buttons.save' | translate"
5145
class="w-full"

src/app/features/files/components/file-keywords/file-keywords.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2>{{ 'files.detail.keywords.title' | translate }}</h2>
66

77
<p-button
88
[label]="'common.buttons.add' | translate"
9-
(click)="addTag()"
9+
(onClick)="addTag()"
1010
[disabled]="isTagsLoading() || keywordControl.invalid"
1111
>
1212
</p-button>

src/app/features/files/components/file-metadata/file-metadata.component.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
<h2>{{ 'files.detail.fileMetadata.title' | translate }}</h2>
44

55
<div class="flex gap-2">
6-
<p-button severity="secondary" (click)="downloadFileMetadata()">
7-
<i class="fas fa-download p-1"></i>
8-
</p-button>
6+
<p-button severity="secondary" icon="fas fa-download" (click)="downloadFileMetadata()" />
97

108
<p-button
119
severity="secondary"
12-
(click)="openEditFileMetadataDialog()"
10+
(onClick)="openEditFileMetadataDialog()"
1311
[label]="'files.detail.fileMetadata.edit' | translate"
1412
></p-button>
1513
</div>

src/app/features/files/components/file-revisions/file-revisions.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2>{{ 'files.detail.revisions.title' | translate }}</h2>
4646
icon="fas fa-download"
4747
variant="text"
4848
[label]="'files.detail.revisions.actions.download' | translate"
49-
(click)="downloadRevision(item.version)"
49+
(onClick)="downloadRevision(item.version)"
5050
></p-button>
5151

5252
<p class="ml-auto mr-1">{{ item.downloads }}</p>

src/app/features/files/pages/community-metadata/community-metadata.component.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/app/features/files/pages/community-metadata/community-metadata.component.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/app/features/files/pages/community-metadata/community-metadata.component.spec.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app/features/files/pages/community-metadata/community-metadata.component.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/app/features/files/pages/file-detail/file-detail.component.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@
2727
}
2828

2929
@if (file()?.links?.download) {
30-
<p-button severity="secondary" (click)="downloadFile(file()?.links?.download!)">
31-
<i class="fas fa-download p-1"></i>
32-
</p-button>
30+
<p-button severity="secondary" icon="fas fa-download" (click)="downloadFile(file()?.links?.download!)" />
3331
}
3432
@if (file()?.links?.render) {
3533
<div class="relative">
36-
<p-button severity="secondary" (click)="embedMenu.toggle($event)">
37-
<i class="fas fa-file-import p-1"></i>
38-
</p-button>
34+
<p-button severity="secondary" icon="fas fa-file-import" (click)="embedMenu.toggle($event)" />
3935

4036
<p-menu appendTo="body" [model]="embedItems" popup #embedMenu>
4137
<ng-template #item let-item>
@@ -46,9 +42,7 @@
4642
}
4743
@if (file()?.links?.html) {
4844
<div class="relative">
49-
<p-button severity="secondary" (click)="shareMenu.toggle($event)">
50-
<i class="fas fa-share-nodes p-1"></i>
51-
</p-button>
45+
<p-button severity="secondary" icon="fas fa-share-nodes" (click)="shareMenu.toggle($event)" />
5246

5347
<p-menu appendTo="body" [model]="shareItems" popup #shareMenu>
5448
<ng-template #item let-item>
@@ -58,9 +52,7 @@
5852
</div>
5953
}
6054
@if (file() && !isAnonymous()) {
61-
<p-button severity="danger" (click)="confirmDelete(file()!)">
62-
<i class="fas fa-trash p-1"></i>
63-
</p-button>
55+
<p-button severity="danger" icon="fas fa-trash" (click)="confirmDelete(file()!)" />
6456
}
6557
</div>
6658
</div>

0 commit comments

Comments
 (0)