Skip to content
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

Open
wants to merge 3 commits into
base: angular-17
Choose a base branch
from
Open

Conversation

jma
Copy link
Contributor

@jma jma commented Aug 27, 2024

No description provided.

jma added 2 commits July 24, 2024 10:18
* 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]>
@jma jma force-pushed the maj-deposit-files branch 2 times, most recently from 946d38a to af6c58d Compare August 27, 2024 14:24
@jma jma changed the title Maj deposit files deposit: add new file component Aug 27, 2024
@jma jma marked this pull request as ready for review August 27, 2024 14:26
- 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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

array def on routerLink ?

Comment on lines +21 to +40
@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"
/>
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants