in source/console/src/views/AddEditEvent.tsx [125:200]
constructor(props: Readonly<IProps>) {
super(props);
this.state = {
rootCauses: [],
isLoading: false,
rootCauseSearchKeyword: '',
error: '',
siteId: '',
siteName: '',
areaId: '',
areaName: '',
processId: '',
processName: '',
eventName: '',
eventDescription: '',
eventSms: '',
eventEmail: '',
eventPriority: EventPriority.Low,
eventType: '',
eventTopicArn: '',
isEventNameValid: false,
isEventDescriptionValid: false,
isEventSmsValid: true,
isEventEmailValid: true,
isEventTypeValid: true,
selectAllRootCauses: false,
eventImgKeys: [],
eventImgKey: '',
eventModalError: '',
showEventImageLibrary: false,
eventAlias: '',
isEventAliasValid: true,
isPageLoading: true,
isFatalError: false,
showSubEventModal: false,
isModalProcessing: false,
existingSubEvents: [],
toBeAddedSubEvents: [],
toBeDeletedSubEvents: [],
imageSelectSubEventId: '',
modifiedExistingSubEventIds: []
};
this.graphQlCommon = new GraphQLCommon();
this.savedRootCauses = [];
this.rootCauses = [];
this.eventNameExists = this.eventNameExists.bind(this);
this.addEvent = this.addEvent.bind(this);
this.editEvent = this.editEvent.bind(this);
this.loadEventImages = this.loadEventImages.bind(this);
this.toggleEventImageLibrary = this.toggleEventImageLibrary.bind(this);
this.onPickImageToUpload = this.onPickImageToUpload.bind(this);
this.onSelectEventImage = this.onSelectEventImage.bind(this);
this.configureSubscription = this.configureSubscription.bind(this);
this.isEditMode = this.isEditMode.bind(this);
this.handleFormInputChange = this.handleFormInputChange.bind(this);
this.shouldAllowFormSubmit = this.shouldAllowFormSubmit.bind(this);
this.doMainFormSubmit = this.doMainFormSubmit.bind(this);
this.doSubEventFormSubmit = this.doSubEventFormSubmit.bind(this);
this.openSubEventModal = this.openSubEventModal.bind(this);
this.loadSubEvents = this.loadSubEvents.bind(this);
this.displaySubEvents = this.displaySubEvents.bind(this);
this.addSubEvent = this.addSubEvent.bind(this);
this.markSubEventForDeletion = this.markSubEventForDeletion.bind(this);
this.addNewSubEventRow = this.addNewSubEventRow.bind(this);
this.createNewToBeAddedSubEvent = this.createNewToBeAddedSubEvent.bind(this);
this.handleAllRootCauseCheckboxFormInputChange = this.handleAllRootCauseCheckboxFormInputChange.bind(this);
this.handleIndividualRootCauseCheckboxFormInputChange = this.handleIndividualRootCauseCheckboxFormInputChange.bind(this);
this.handleRootCauseFilterTextBoxFormInputChange = this.handleRootCauseFilterTextBoxFormInputChange.bind(this);
this.handleSubEventFormInputChange = this.handleSubEventFormInputChange.bind(this);
this.showSubEventImageSelect = this.showSubEventImageSelect.bind(this);
this.onSelectSubEventImage = this.onSelectSubEventImage.bind(this);
this.editSubEvent = this.editSubEvent.bind(this);
}