fix errors in shared and marketplace

This commit is contained in:
Matt Hill
2023-07-11 12:53:42 -06:00
parent b9316a4112
commit 31811eb91e
8 changed files with 77 additions and 38 deletions

View File

@@ -10,17 +10,17 @@ import { AbstractMarketplaceService } from '../../services/marketplace.service'
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ReleaseNotesComponent {
constructor(
private readonly route: ActivatedRoute,
private readonly marketplaceService: AbstractMarketplaceService,
) {}
private readonly pkgId = getPkgId(this.route)
private selected: string | null = null
readonly notes$ = this.marketplaceService.fetchReleaseNotes$(this.pkgId)
constructor(
private readonly route: ActivatedRoute,
private readonly marketplaceService: AbstractMarketplaceService,
) {}
isSelected(key: string): boolean {
return this.selected === key
}

View File

@@ -37,8 +37,6 @@ export class AdditionalComponent {
@Output()
version = new EventEmitter<string>()
readonly url = this.route.snapshot.queryParamMap.get('url') || undefined
readonly displayEmver = displayEmver
constructor(
@@ -50,6 +48,8 @@ export class AdditionalComponent {
private readonly route: ActivatedRoute,
) {}
readonly url = this.route.snapshot.queryParamMap.get('url') || undefined
presentAlertVersions(version: TemplateRef<TuiDialogContext>) {
this.dialogs
.open<string>(version, {

View File

@@ -24,6 +24,7 @@ export * from './pages/show/package/package.module'
export * from './pipes/filter-packages.pipe'
export * from './pipes/mime-type.pipe'
export * from './components/store-icon/store-icon.component'
export * from './components/store-icon/store-icon.component.module'
export * from './services/marketplace.service'