-
Notifications
You must be signed in to change notification settings - Fork 6
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
deposit: add new file component #368
base: angular-17
Are you sure you want to change the base?
Conversation
* Removes useless detailed views. * Redirects to the search view after record edition. * Uses short editor when it is possible. * Uses a generic component to display fields in detailed views. * Removes useless test files. Co-Authored-by: Johnny Mariéthoz <[email protected]>
Co-Authored-by: Johnny Mariéthoz <[email protected]>
946d38a
to
af6c58d
Compare
- Fixes missing spinner. - Adds legacy browsers support. - Refactors the deposit edition. - Splits the deposit editor component into serveral samller components. - Uses primeng component for the deposition. Co-Authored-by: Johnny Mariéthoz <[email protected]>
@@ -28,7 +28,7 @@ <h1>{{ 'Confirmation' | translate }}</h1> | |||
<a [href]="publicInterfaceLink" translate>Back to public interface</a> | |||
</li> | |||
<li> | |||
<a routerLink="/deposit/0/create" translate>Deposit another publication</a> | |||
<a routerLink="/deposit/create" translate>Deposit another publication</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array def on routerLink ?
@if(currentStep() === 'metadata') { | ||
<p-splitButton | ||
[label]="'Import metadata' | translate" | ||
[model]="importMenuItems" | ||
/> | ||
} @if(currentStep() === 'diffusion') { | ||
<p-button | ||
class="m-2" | ||
(click)="save()" | ||
[label]="'Save' | translate" | ||
iconPos="right" | ||
/> | ||
} @else { | ||
<p-button | ||
class="m-2" | ||
(click)="save()" | ||
icon="pi pi-chevron-right" | ||
[label]="'Continue' | translate" | ||
iconPos="right" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@switch(currentStep()) {
case "metadata":
...
break;
case "diffusion":
...
break;
@default {
...
}
}
this.activeIndex = 0; | ||
this.deposit.set(result[0].metadata); | ||
|
||
// TODO: solve this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
No description provided.