-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portalicious: export selected & duplicate registrations
AB#31003
- Loading branch information
Showing
22 changed files
with
921 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...es/Portalicious/src/app/components/confirmation-dialog/confirmation-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...aces/Portalicious/src/app/components/form-field-wrapper/form-field-wrapper.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
interfaces/Portalicious/src/app/domains/event/event.api.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { HttpParamsOptions } from '@angular/common/http'; | ||
import { Injectable, Signal } from '@angular/core'; | ||
|
||
import { DomainApiService } from '~/domains/domain-api.service'; | ||
|
||
const BASE_ENDPOINT = (projectId: Signal<number>) => [ | ||
'programs', | ||
projectId, | ||
'events', | ||
]; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class EventApiService extends DomainApiService { | ||
getEvents({ | ||
projectId, | ||
params, | ||
}: { | ||
projectId: Signal<number>; | ||
params: HttpParamsOptions['fromObject']; | ||
}) { | ||
return this.generateQueryOptions<Blob>({ | ||
path: BASE_ENDPOINT(projectId), | ||
requestOptions: { | ||
params, | ||
responseAsBlob: true, | ||
}, | ||
}); | ||
} | ||
|
||
public invalidateCache(projectId: Signal<number>): Promise<void> { | ||
return this.queryClient.invalidateQueries({ | ||
queryKey: this.pathToQueryKey(BASE_ENDPOINT(projectId)), | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.