diff --git a/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts b/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts index 3080a1548..3c4cdbb6d 100644 --- a/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts +++ b/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts @@ -5,7 +5,7 @@ import { DmpOverviewModel } from '../dmp/dmp-overview'; export interface DatasetOverviewModel { id: string; label: string; - status: any; + status: number; datasetTemplate: DatasetProfileModel; users: any[]; diff --git a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html index 26ed8b1a1..378b65e67 100644 --- a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html +++ b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html @@ -12,8 +12,8 @@

{{ dataset.label }}

-
-

+

+

{{ roleDisplayFromList(dataset.users) }}

@@ -33,12 +33,12 @@ lock_outline {{'DMP-OVERVIEW.LOCKED' | translate}}
-
{{'GENERAL.STATUSES.EDIT' | translate}} : +
{{'GENERAL.STATUSES.EDIT' | translate}} : {{dataset.modified | date:"longDate"}}
- check + check {{'TYPES.DATASET-STATUS.FINALISED' | translate}}
@@ -49,12 +49,12 @@ matTooltipPosition="above"> content_copy - -
- +
+
+ +

{{ 'DMP-LISTING.ACTIONS.MAKE-PUBLIC' | translate }}

+
-
@@ -132,7 +132,7 @@
-
+
@@ -145,7 +145,7 @@

{{ 'DMP-LISTING.ACTIONS.EXPORT' | translate }}

-
+
diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss index 1923ad102..f68c825f8 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss @@ -30,14 +30,6 @@ // ********BUTTONS******** -.version-btn { - // width: 6.7em; - height: 1.8em; - border: 1px solid #707070; - border-radius: 4px; - background-color: transparent; -} - .id-btn { background: url("../../../../assets/images/NoPath.png") no-repeat center; width: 1em; @@ -194,7 +186,7 @@ } .doi-txt { - font-size: 0.8em; + font-size: 1em; letter-spacing: 0.009em; color: #7d7d7d; width: 12em; @@ -202,6 +194,7 @@ overflow: hidden; border: none; padding: 0px; + background-color: transparent; } .doi-panel { @@ -303,6 +296,17 @@ ::ng-deep .versions-select .mat-form-field-wrapper { background-color: transparent !important; padding-bottom: 0 !important; + width: 6.5rem; +} + +::ng-deep .versions-select .mat-form-field-wrapper .mat-form-field-flex { + padding: 0 0.5rem 0 0.625rem; + margin-bottom: 0.2rem; + font-weight: 500; +} + +::ng-deep mat-select .mat-select-arrow-wrapper { + vertical-align: bottom; } ::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts index ab89088c8..506537218 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.ts @@ -478,7 +478,10 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit { if (result) { this.dmpService.publish(dmpId) .pipe(takeUntil(this._destroyed)) - .subscribe(() => { this.hasPublishButton = false }); + .subscribe(() => { + this.hasPublishButton = false; + this.reloadPage(); + }); } }); } diff --git a/dmp-frontend/src/app/ui/misc/navigation/user-dialog/user-dialog.component.html b/dmp-frontend/src/app/ui/misc/navigation/user-dialog/user-dialog.component.html index 689af7f41..6c083243a 100644 --- a/dmp-frontend/src/app/ui/misc/navigation/user-dialog/user-dialog.component.html +++ b/dmp-frontend/src/app/ui/misc/navigation/user-dialog/user-dialog.component.html @@ -3,7 +3,7 @@