@@ -4,23 +4,21 @@ import { ButtonModule } from 'primeng/button';
4
4
import { CheckboxModule } from 'primeng/checkbox' ;
5
5
import { MessageModule } from 'primeng/message' ;
6
6
7
- import { NgIf } from '@angular/common' ;
8
7
import { Component , computed , Input } from '@angular/core' ;
9
8
import { FormsModule } from '@angular/forms' ;
10
9
11
10
import { UserSelectors } from '@core/store/user' ;
12
11
import { AcceptTermsOfServiceByUser } from '@osf/core/store/user' ;
12
+ import { TranslateModule } from '@ngx-translate/core' ;
13
+
13
14
14
15
@Component ( {
15
16
selector : 'osf-tos-consent-banner' ,
16
- imports : [ NgIf , FormsModule , CheckboxModule , ButtonModule , MessageModule ] ,
17
+ imports : [ FormsModule , CheckboxModule , ButtonModule , MessageModule , TranslateModule ] ,
17
18
templateUrl : './tos-consent-banner.component.html' ,
18
19
styleUrls : [ './tos-consent-banner.component.scss' ] ,
19
20
} )
20
21
export class TosConsentBannerComponent {
21
- @Input ( ) visible = false ;
22
- @Input ( ) termsLink = '/terms' ;
23
- @Input ( ) privacyLink = '/privacy' ;
24
22
25
23
@Input ( ) acceptedTermsOfService = false ;
26
24
@@ -34,7 +32,7 @@ export class TosConsentBannerComponent {
34
32
35
33
onContinue ( ) {
36
34
if ( ! this . acceptedTermsOfService ) {
37
- this . errorMessage = 'You must agree before continuing .' ;
35
+ this . errorMessage = 'We were unable to save your consent .' ;
38
36
return ;
39
37
}
40
38
0 commit comments