X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2Fsdks%2FsdkSelectDropdown.component.ts;fp=webapp%2Fsrc%2Fapp%2Fsdks%2FsdkSelectDropdown.component.ts;h=0000000000000000000000000000000000000000;hb=38c0c21a969e621c725245ce91c78e77076c5ce7;hp=7cd2dc7a05f0c2f2a6a23688dfff82055b75b30e;hpb=b0d130807fb9bf36f5ac1abe21cbd558eb86d5cc;p=src%2Fxds%2Fxds-agent.git diff --git a/webapp/src/app/sdks/sdkSelectDropdown.component.ts b/webapp/src/app/sdks/sdkSelectDropdown.component.ts deleted file mode 100644 index 7cd2dc7..0000000 --- a/webapp/src/app/sdks/sdkSelectDropdown.component.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Component, OnInit, Input } from '@angular/core'; - -import { ISdk, SdkService } from '../services/sdk.service'; - -@Component({ - selector: 'xds-sdk-select-dropdown', - template: ` -
- - -
- ` -}) -export class SdkSelectDropdownComponent implements OnInit { - - // FIXME investigate to understand why not working with sdks as input - // - // @Input() sdks: ISdk[]; - sdks: ISdk[]; - - curSdk: ISdk; - - constructor(private sdkSvr: SdkService) { } - - ngOnInit() { - this.curSdk = this.sdkSvr.getCurrent(); - this.sdkSvr.Sdks$.subscribe((s) => { - if (s) { - this.sdks = s; - if (this.curSdk === null || s.indexOf(this.curSdk) === -1) { - this.sdkSvr.setCurrent(this.curSdk = s.length ? s[0] : null); - } - } - }); - } - - select(s) { - this.sdkSvr.setCurrent(this.curSdk = s); - } -} - -