Skip to content
Merged
Show file tree
Hide file tree
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
@@ -1,12 +1,7 @@
<div class="addon-card flex flex-1 gap-4 flex-column p-5">
<div class="max-h-8rem flex justify-content-center align-items-center">
@if (actualAddon()?.externalServiceName) {
<img
class="addon-image"
alt="Addon card image"
[src]="'assets/icons/addons/' + actualAddon()!.externalServiceName + '.svg'"
data-test-addon-card-logo
/>
@if (actualAddon()?.iconUrl) {
<img class="addon-image" alt="Addon card image" [src]="actualAddon()!.iconUrl" data-test-addon-card-logo />
}
</div>

Expand Down
1 change: 1 addition & 0 deletions src/app/shared/mappers/addon.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class AddonMapper {
supportedResourceTypes: response.attributes.supported_resource_types,
credentialsFormat: response.attributes.credentials_format,
providerName: response.attributes.display_name,
iconUrl: response.attributes.icon_url,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/app/shared/mocks/addon.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const MOCK_ADDON: AddonModel = {
credentialsFormat: CredentialsFormat.ACCESS_SECRET_KEYS,
providerName: 'Test Provider',
wbKey: 'github',
iconUrl: 'https://test.com/icon.png',
};
2 changes: 2 additions & 0 deletions src/app/shared/models/addons/addons.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface AddonGetResponseJsonApi {
external_service_name: string;
credentials_format: string;
wb_key: string;
icon_url: string;
[key: string]: unknown;
};
relationships: {
Expand Down Expand Up @@ -103,6 +104,7 @@ export interface AddonModel {
credentialsFormat: string;
providerName: string;
wbKey: string;
iconUrl: string;
}

export interface IncludedAddonData {
Expand Down
1 change: 1 addition & 0 deletions src/app/shared/models/addons/authorized-account.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export interface AuthorizedAccountModel {
supportedFeatures: string[];
providerName: string;
credentialsFormat: string;
iconUrl?: string;
}
1 change: 1 addition & 0 deletions src/app/shared/models/addons/configured-addon.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export interface ConfiguredAddonModel {
baseAccountType: string;
externalStorageServiceId?: string;
rootFolderId?: string;
iconUrl?: string;
}