-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cb2-11294): allow signed url zip files to download (#1438)
* feat(cb2-11294): allow signed url zip files to download * feat(cb2-11294): tidy up)
- Loading branch information
1 parent
3de7d44
commit 41be7d1
Showing
18 changed files
with
165 additions
and
51 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1 +1,12 @@ | ||
<button | ||
*ngIf="hasAdrDocumentation()" | ||
[id]="'adr-doc-link'" | ||
class="link" | ||
appRetrieveDocument | ||
[params]="documentParams" | ||
[fileName]="fileName" | ||
[fileType]="'zip'" | ||
> | ||
Download ADR Documentation | ||
</button> | ||
<app-dynamic-form-group [template]="template" [data]="techRecord" [edit]="isEditing" (formChange)="handleFormChange($event)"></app-dynamic-form-group> |
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,22 @@ | ||
@import 'node_modules/govuk-frontend/govuk/all'; | ||
|
||
.link { | ||
border: none; | ||
padding: 0; | ||
text-decoration: underline; | ||
text-decoration-thickness: max(1px, 0.0625rem); | ||
text-underline-offset: 0.1em; | ||
font-size: 19px; | ||
color: $govuk-brand-colour; | ||
font-weight: 400; | ||
background-color: transparent; | ||
box-shadow: none; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
text-decoration: underline; | ||
text-decoration-thickness: max(3px, 0.1875rem, 0.12em); | ||
background-color: transparent; | ||
color: govuk-colour('dark-blue', $legacy: 'light-blue'); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/app/models/test-results/test-result-required-standard.model.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
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
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
7 changes: 5 additions & 2 deletions
7
src/app/store/required-standards/actions/required-standards.actions.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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { GlobalError } from '@core/components/global-error/global-error.interface'; | ||
import { DefectGETIVA } from '@dvsa/cvs-type-definitions/types/iva/defects/get'; | ||
import { DefectGETRequiredStandards } from '@dvsa/cvs-type-definitions/types/required-standards/defects/get'; | ||
import { createAction, props } from '@ngrx/store'; | ||
|
||
const prefix = '[Required Standards]'; | ||
|
||
export const getRequiredStandards = createAction(`${prefix} getRequiredStandards`, props<{ euVehicleCategory: string }>()); | ||
export const getRequiredStandardsSuccess = createAction(`${prefix} getRequiredStandards Success`, props<{ requiredStandards: DefectGETIVA }>()); | ||
export const getRequiredStandardsSuccess = createAction( | ||
`${prefix} getRequiredStandards Success`, | ||
props<{ requiredStandards: DefectGETRequiredStandards }>(), | ||
); | ||
export const getRequiredStandardsFailure = createAction(`${prefix} getRequiredStandards Failure`, props<GlobalError>()); |
Oops, something went wrong.