Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/pages/ReportSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ const propTypes = {

/** The current user's notification preference for this report */
notificationPreference: PropTypes.string,

/** Access setting e.g. whether the report is "restricted" */
visibility: PropTypes.string,

/** Linked policy's ID */
policyID: PropTypes.string,
}).isRequired,

/** All reports shared with the user */
reports: PropTypes.shape({
reports: PropTypes.objectOf(PropTypes.shape({
/** The report name */
reportName: PropTypes.string,

Expand All @@ -60,7 +66,7 @@ const propTypes = {

/** ID of the policy */
policyID: PropTypes.string,
}).isRequired,
})).isRequired,

/** The policies which the user has access to and which the report could be tied to */
policies: PropTypes.shape({
Expand All @@ -74,6 +80,13 @@ const propTypes = {

const defaultProps = {
...fullPolicyDefaultProps,
report: {
reportID: 0,
reportName: '',
policyID: '',
notificationPreference: '',
visibility: '',
},
};

class ReportSettingsPage extends Component {
Expand Down