Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 1x 1x 1x 1x 1x 8x | import { ChangeDetectionStrategy, Component, Injector, Input, OnChanges, SimpleChanges, ViewEncapsulation } from '@angular/core'; import { Link } from '../shared/link'; import { TamuAbstractBaseComponent } from '../shared/tl-abstract-base.component'; export const LOGIN_LABEL = 'Login'; /** * A fullwidth footer component which attaches to the bottom of the document body. */ @Component({ selector: 'tl-footer-component', templateUrl: './tl-footer.component.html', styleUrls: ['./tl-footer.component.scss'], encapsulation: ViewEncapsulation.ShadowDom, changeDetection: ChangeDetectionStrategy.Default }) export class TlFooterComponent extends TamuAbstractBaseComponent implements OnChanges { @Input() loginUrl: string; /** Used to iterate the footer navigation list. */ links: Array<Link> = [ { href: 'https://howdy.tamu.edu/uPortal/normal/render.uP', value: 'howdy.tamu.edu' }, { href: 'https://library.tamu.edu/services/tech_troubleshooting.html', value: 'Off-Campus Access' }, { href: 'http://tamu.edu/', value: 'Texas A& M University' }, { href: 'http://library.tamu.edu/about/compliance.html', value: 'Site Policies' }, { href: 'https://library.tamu.edu/services/accessibility.html', value: 'Accessibility' }, { href: 'https://txcrews.org/', value: 'Texas CREWS' }, { href: 'https://askus.library.tamu.edu/contact/index', value: 'Comments' }, { href: 'https://library.tamu.edu/status/', value: 'Services Status' } ]; variantTypes = ['button']; // tslint:disable-next-line:unnecessary-constructor constructor(injector: Injector) { super(injector); } ngOnChanges(changes: SimpleChanges): void { if (changes.loginUrl) { this.links = this.links.filter(link => link.value !== LOGIN_LABEL); if (this.loginUrl) { this.links.push({ href: this.loginUrl, value: LOGIN_LABEL }); } } } index(index: number, link: Link): number { return index; } } |