Project

General

Profile

« Previous | Next » 

Revision 56897

Curators Page add privacy policy statement.

View differences:

curator.component.ts
10 10
import {HelperFunctions} from '../../openaireLibrary/utils/HelperFunctions.class';
11 11
import {UtilitiesService} from '../../openaireLibrary/services/utilities.service';
12 12
import {HelpContentService} from '../../services/help-content.service';
13
import {AlertModal} from '../../openaireLibrary/utils/modal/alert';
13 14

  
14 15
@Component({
15 16
  selector: 'curator',
......
39 40
  public enabled = true;
40 41
  private deletePhoto = false;
41 42

  
43
  @ViewChild('privacyStatement') privacyStatement: AlertModal;
44

  
42 45
  constructor(private element: ElementRef,
43 46
              private route: ActivatedRoute,
44 47
              private _router: Router,
......
278 281
    this.hasChanged = true;
279 282
    this.photo = 'assets/common-assets/curator-default.png';
280 283
  }
284

  
285
  privacy() {
286
    this.privacyStatement.cancelButton = false;
287
    this.privacyStatement.okButtonText = 'Close';
288
    this.privacyStatement.alertTitle = 'Privacy policy statement'
289
    this.privacyStatement.open();
290
  }
281 291
}

Also available in: Unified diff