Remove unused code
This commit is contained in:
parent
698a8c6508
commit
11e4090dbb
|
@ -42,7 +42,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
|
||||||
private lastScrollHash: string
|
private lastScrollHash: string
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private customMarkupService: CustomMarkupService,
|
|
||||||
private viewportScroller: ViewportScroller,
|
private viewportScroller: ViewportScroller,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private notifier: Notifier,
|
private notifier: Notifier,
|
||||||
|
@ -74,8 +73,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
|
||||||
|
|
||||||
this.html = await this.instanceService.buildHtml(about)
|
this.html = await this.instanceService.buildHtml(about)
|
||||||
|
|
||||||
await this.injectDescription(about)
|
|
||||||
|
|
||||||
this.initialized = true
|
this.initialized = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,10 +93,4 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked {
|
||||||
copyToClipboard(link)
|
copyToClipboard(link)
|
||||||
this.notifier.success(link, $localize `Link copied`)
|
this.notifier.success(link, $localize `Link copied`)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async injectDescription (about: About) {
|
|
||||||
const element = await this.customMarkupService.buildElement(about.instance.description)
|
|
||||||
|
|
||||||
this.descriptionWrapper.nativeElement.appendChild(element)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,7 @@ import { InstanceService } from './instance.service'
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
SharedMainModule,
|
SharedMainModule,
|
||||||
NgbAccordionModule,
|
NgbAccordionModule
|
||||||
SharedCustomMarkupModule
|
|
||||||
],
|
],
|
||||||
|
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|
Loading…
Reference in New Issue