Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
eb47c8ee
Commit
eb47c8ee
authored
Jun 17, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
privacy policy
parent
e16d05d1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
16 deletions
+26
-16
forgot-password.component.ts
...eer-web/auth/forgot-password/forgot-password.component.ts
+1
-1
login.component.ts
...pp/components/my-career-web/auth/login/login.component.ts
+1
-1
register.component.ts
...ponents/my-career-web/auth/register/register.component.ts
+2
-2
reset-password.component.ts
...areer-web/auth/reset-password/reset-password.component.ts
+1
-1
left-sidebar.component.ts
...reer-web/dashboard/left-sidebar/left-sidebar.component.ts
+1
-1
personal-details.component.html
...ashboard/personal-details/personal-details.component.html
+2
-2
personal-details.component.ts
.../dashboard/personal-details/personal-details.component.ts
+8
-3
google-places-autocomplete.directive.ts
...eer-web/mc-shared/google-places-autocomplete.directive.ts
+10
-5
No files found.
frontend/angular/src/app/components/my-career-web/auth/forgot-password/forgot-password.component.ts
View file @
eb47c8ee
...
...
@@ -51,7 +51,7 @@ export class ForgotPasswordComponent extends BaseComponent {
}
openPrivacyPolicy
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
PRIVACY_POLICY
;
window
.
open
(
EXTERNAL_LINKS
.
PRIVACY_POLICY
,
'_blank'
)
;
}
}
frontend/angular/src/app/components/my-career-web/auth/login/login.component.ts
View file @
eb47c8ee
...
...
@@ -80,7 +80,7 @@ export class LoginComponent extends BaseComponent {
}
openPrivacyPolicy
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
PRIVACY_POLICY
;
window
.
open
(
EXTERNAL_LINKS
.
PRIVACY_POLICY
,
'_blank'
)
}
}
frontend/angular/src/app/components/my-career-web/auth/register/register.component.ts
View file @
eb47c8ee
...
...
@@ -71,11 +71,11 @@ export class RegisterComponent extends BaseComponent implements OnInit {
}
openTermsAndConditions
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
TERMS_CONDITIONS
;
window
.
open
(
EXTERNAL_LINKS
.
TERMS_CONDITIONS
,
'_blank'
)
;
}
openPrivacyPolicy
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
PRIVACY_POLICY
;
window
.
open
(
EXTERNAL_LINKS
.
PRIVACY_POLICY
,
'_blank'
)
;
}
}
frontend/angular/src/app/components/my-career-web/auth/reset-password/reset-password.component.ts
View file @
eb47c8ee
...
...
@@ -67,7 +67,7 @@ export class ResetPasswordComponent extends BaseComponent implements OnInit {
}
openPrivacyPolicy
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
PRIVACY_POLICY
;
window
.
open
(
EXTERNAL_LINKS
.
PRIVACY_POLICY
,
'_blank'
)
}
}
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.ts
View file @
eb47c8ee
...
...
@@ -32,7 +32,7 @@ export class LeftSidebarComponent extends BaseComponent {
}
openPrivacyPolicy
():
void
{
window
.
location
.
href
=
EXTERNAL_LINKS
.
PRIVACY_POLICY
;
window
.
open
(
EXTERNAL_LINKS
.
PRIVACY_POLICY
,
'_blank'
)
}
}
frontend/angular/src/app/components/my-career-web/dashboard/personal-details/personal-details.component.html
View file @
eb47c8ee
...
...
@@ -29,10 +29,10 @@
<div
class=
"col-md-6 form-group"
>
<label>
Mobile
</label>
<app-form-control>
<p-inputMask
mask=
"9999 999 9999"
styleClass=
"form-control"
placeholder=
"Mobile No"
[(
ngModel
)]="
careerProfile
.
Mobile
"
name=
"Mobile"
>
<p-inputMask
(
focusout
)="
checkMobilePattern
()"
slotChar=
"-"
[
unmask
]="
true
"
[
autoClear
]="
true
"
mask=
"9999 999 9999"
styleClass=
"form-control"
placeholder=
"Mobile No"
[(
ngModel
)]="
careerProfile
.
Mobile
"
name=
"Mobile"
>
</p-inputMask>
</app-form-control>
<div
class=
"mobile-no-msg"
*
ngIf=
"!careerProfile.Mobile
&& !isLoading
"
>
<div
class=
"mobile-no-msg"
*
ngIf=
"!careerProfile.Mobile
|| careerProfile.Mobile.length < 11
"
>
You did not enter a mobile phone number. We occasionally try to contact you via text message.
</div>
</div>
...
...
frontend/angular/src/app/components/my-career-web/dashboard/personal-details/personal-details.component.ts
View file @
eb47c8ee
...
...
@@ -119,15 +119,20 @@ export class PersonalDetailsComponent extends BaseComponent implements OnInit {
})
}
updateAddress
(
$event
):
void
{
console
.
log
(
$event
);
this
.
careerProfile
.
GoogleAddress
=
$event
.
address
;
checkMobilePattern
()
{
if
(
this
.
careerProfile
.
Mobile
&&
this
.
careerProfile
.
Mobile
.
length
<
11
)
{
this
.
careerProfile
.
Mobile
=
''
;
}
}
changedAddress
():
void
{
this
.
careerProfile
.
GoogleAddress
=
' '
;
}
updateAddress
(
$event
):
void
{
this
.
careerProfile
.
GoogleAddress
=
$event
.
formatted
;
}
connectWithSocial
(
type
):
void
{
const
params
=
{
environment
:
environment
.
envName
,
...
...
frontend/angular/src/app/components/my-career-web/mc-shared/google-places-autocomplete.directive.ts
View file @
eb47c8ee
import
{
Directive
,
ElementRef
,
EventEmitter
,
OnInit
,
Output
}
from
'@angular/core'
;
import
{
Directive
,
ElementRef
,
EventEmitter
,
NgZone
,
OnInit
,
Output
}
from
'@angular/core'
;
declare
var
google
:
any
;
...
...
@@ -15,8 +15,8 @@ export class GooglePlacesAutocompleteDirective implements OnInit {
const
googleLocation
:
any
=
{};
googleLocation
.
lat
=
place
.
geometry
.
location
.
lat
();
googleLocation
.
lng
=
place
.
geometry
.
location
.
lng
();
googleLocation
.
address
=
`
${
place
.
name
}
${
place
.
formatted_address
}
`
;
googleLocation
.
address
=
place
.
name
;
googleLocation
.
formatted
=
place
.
formatted_address
;
// for (const i in place.address_components) {
// if (place.address_components.hasOwnProperty(i)) {
// const item = place.address_components[i];
...
...
@@ -46,14 +46,19 @@ export class GooglePlacesAutocompleteDirective implements OnInit {
return
googleLocation
;
}
constructor
(
private
elRef
:
ElementRef
)
{
constructor
(
private
elRef
:
ElementRef
,
private
zn
:
NgZone
)
{
this
.
element
=
elRef
.
nativeElement
;
}
ngOnInit
():
void
{
const
autocomplete
=
new
google
.
maps
.
places
.
Autocomplete
(
this
.
element
);
google
.
maps
.
event
.
addListener
(
autocomplete
,
'place_changed'
,
()
=>
{
this
.
addressSelected
.
emit
(
GooglePlacesAutocompleteDirective
.
getFormattedAddress
(
autocomplete
.
getPlace
()));
this
.
zn
.
run
(()
=>
{
this
.
addressSelected
.
emit
(
GooglePlacesAutocompleteDirective
.
getFormattedAddress
(
autocomplete
.
getPlace
()));
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment