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

Api téléchargement formulaire #37 #63

Open
wants to merge 2 commits into
base: Api_telechargement
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,24 +155,24 @@ export class IgnApiDlComponent implements OnInit {

setZone(value: string) {
if (this.bucketPromisesZone.map((choice) => choice.value).includes(value)) {
this.zone$.next(value)
this.resetPage()
this.zone$.next(value)
}
}

setCrs(value: string) {
if (this.bucketPromisesCrs.map((choice) => choice.value).includes(value)) {
this.crs$.next(value)
this.resetPage()
this.crs$.next(value)
}
}

setFormat(value: string) {
if (
this.bucketPromisesFormat.map((choice) => choice.value).includes(value)
) {
this.format$.next(value)
this.resetPage()
this.format$.next(value)
}
}

Expand All @@ -192,7 +192,8 @@ export class IgnApiDlComponent implements OnInit {
}

resetPage(): void {
this.page$.next(1)
this.page$.next('0')
this.size$.next(this.initialLimit)

Choose a reason for hiding this comment

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

La varaible size n'existe pas. Il faut la définir en début de class si elle est utile ou la supprimer

}

async getCapabilities() {
Expand Down
Loading