/** * Created by Holger Stitz on 06.12.2016. */ import { ProxyView, IFormSelectOption } from 'tdp_core'; import { SpeciesUtils } from '../common/common'; /** * helper view for proxying an existing external website */ export class GeneProxyView extends ProxyView { protected getSelectionSelectData(ensgs: string[]): Promise { return SpeciesUtils.createOptions(ensgs, this.selection, this.idType); } protected updateProxyView() { const { extra }: { extra: any } = this.options; extra.species = SpeciesUtils.getSelectedSpecies(); super.updateProxyView(); } }