Project

General

Profile

« Previous | Next » 

Revision 58098

Second commit for the new layout provided by the UX team

View differences:

datasource-update-form.component.ts
8 8
         longtitudeDesc, latitudeDesc, websiteUrlDesc, institutionNameDesc, englishNameDesc, logoUrlDesc, timezoneDesc,
9 9
         datasourceTypeDesc, adminEmailDesc, lissnDesc, eissnDesc, issnDesc } from '../../../domain/oa-description';
10 10
import { AuthenticationService } from '../../../services/authentication.service';
11
import {SharedService} from "../../../services/shared.service";
11 12

  
12 13
@Component ({
13 14
  selector: 'datasource-update-form',
......
77 78
  constructor(
78 79
    private fb: FormBuilder,
79 80
    private repoService: RepositoryService,
81
    private sharedService: SharedService,
80 82
    private authService: AuthenticationService
81 83
  ) {}
82 84

  
......
244 246
        if (this.showButton) {
245 247
          this.loadingMessage = formSubmitting;
246 248
          this.errorMessage = '';
249
          // this.repoService.up
247 250
          this.repoService.updateRepository(this.selectedRepo).subscribe(
248 251
            response => {
249 252
              if (response) {
......
263 266
              } else {
264 267
                this.successMessage = formSuccessUpdatedRepo;
265 268
              }
269
              //fixme is this the place to update the subject??
270
              this.sharedService.setRepository(this.selectedRepo);
266 271
            }
267 272
          );
268 273
        }

Also available in: Unified diff