Project

General

Profile

« Previous | Next » 

Revision 51771

fixed some bugs

View differences:

sources-update-repo.component.ts
10 10
} from '../../domain/oa-description';
11 11
import { formInfoLoading, loadingRepoError } from '../../domain/shared-messages';
12 12
import { DatasourceUpdateFormComponent } from './sources-forms/datasource-update-form.component';
13
import {ConfirmationDialogComponent} from "../../shared/reusablecomponents/confirmation-dialog.component";
13 14

  
14 15

  
15 16

  
......
33 34
  interfaceFormDesc: Description = interfaceFormDesc;
34 35
  updateDatasourceInterfaces: Type<any> = DatasourceInterfaceFormComponent;
35 36

  
37
  isModalShown: boolean;
38
  @ViewChild('updateLogoUrlModal')
39
  public updateLogoUrlModal: ConfirmationDialogComponent;
40

  
36 41
  constructor (
37 42
    private fb: FormBuilder,
38 43
    private repoService: RepositoryService,
......
94 99
    );
95 100
  }
96 101

  
97
  getNewLogoUrl(newURL: string) {
98
    this.logoURL = newURL;
102
  updateLogoUrl(logoUrl: string){
103
    this.updateLogoUrlModal.ids = [logoUrl];
104
    this.updateLogoUrlModal.showModal();
99 105
  }
100 106

  
107
  updatedLogoUrl(event: any) {
108
    this.repo.logoUrl = this.logoURL;
109
    this.datasourceUpdateForm.updateGroup.get('logoUrl').setValue(this.logoURL);
110
    this.datasourceUpdateForm.updateRepo();
111

  
112
  }
113

  
114
  getNewLogoUrl( event: any ) {
115
    this.logoURL = event.target.value;
116

  
117
  }
118

  
101 119
}

Also available in: Unified diff