-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
5,494 additions
and
3,723 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ export default class FillUserDataView extends Component { | |
this.state = { | ||
contactEmail: '', | ||
contactPhoneNumber: '', | ||
profileEmail: '', | ||
profileEmail: document.permissions.anonymousAccess ? '' : document.permissions.profile, | ||
|
||
showValidation: false | ||
} | ||
|
@@ -73,7 +73,8 @@ export default class FillUserDataView extends Component { | |
</FormGroup> | ||
<FormGroup controlId="profileEmail"> | ||
<ControlLabel>{profileTitle[language]}</ControlLabel> | ||
<FormControl className="en-input" onChange={this.handleTextChange} placeholder="[email protected]"/> | ||
<FormControl defaultValue={document.permissions.anonymousAccess ? '' : document.permissions.profile} | ||
className="en-input" onChange={this.handleTextChange} placeholder="[email protected]"/> | ||
</FormGroup> | ||
</div> | ||
<div className='button-container'> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export const isAdmin = _ => | ||
!!document.roles.find(role => role.permission === 'admin') | ||
!!document.permissions.roles.find(role => role.permission === 'admin') | ||
|
||
export const isManager = _ => | ||
!!document.roles.find(role => role.permission === 'manager') | ||
!!document.permissions.roles.find(role => role.permission === 'manager') | ||
|
||
export const isManagerOfDepartment = departmentId => | ||
!!document.roles.find(role => role.departmentId === departmentId && role.permission === 'manager') | ||
!!document.permissions.roles.find(role => role.departmentId === departmentId && role.permission === 'manager') | ||
|
||
export const isVolunteer = _ => | ||
!!document.roles.find(role => role.permission === 'volunteer') | ||
!!document.permissions.roles.find(role => role.permission === 'volunteer') | ||
|
||
export const isVolunteerOfDepartment = departmentId => | ||
!!document.roles.find(role => role.departmentId === departmentId && role.permission === 'volunteer') | ||
!!document.permissions.roles.find(role => role.departmentId === departmentId && role.permission === 'volunteer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.