Feat: Assessment page completed with save method combining Assessment, Distraction, Assessment Command Modality Link, and Assessment Response save for creating new complete Assessnent.
This commit is contained in:
@@ -299,7 +299,7 @@ export default class TableBasePage extends BasePage {
|
||||
.catch(error => console.error('Error:', error));
|
||||
}
|
||||
hookupButtonCancel() {
|
||||
Events.initialiseEventHandler(idFormFilters + ' button.' + flagCancel, flagInitialised, (button) => {
|
||||
Events.initialiseEventHandler('.' + flagContainer + '.' + flagSave + '.' + flagCancel + ' button.' + flagCancel, flagInitialised, (button) => {
|
||||
button.addEventListener("click", (event) => {
|
||||
event.stopPropagation();
|
||||
button = event.target;
|
||||
@@ -756,6 +756,8 @@ export default class TableBasePage extends BasePage {
|
||||
let formFilters = TableBasePage.getFormFilters();
|
||||
let areDirtyFilters = DOM.hasDirtyChildrenContainer(formFilters);
|
||||
|
||||
console.log({ records, isDirtyMainTable, formFilters, areDirtyFilters });
|
||||
|
||||
this.toggleShowButtonsSaveCancel(isDirtyMainTable && !areDirtyFilters);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user