From 54125834d43e63b395fe8633ceaf2d8ed94f0d88 Mon Sep 17 00:00:00 2001 From: Andrew Philbin <45773707+AndrewPhilbin@users.noreply.github.com> Date: Fri, 11 Aug 2023 16:59:52 -0700 Subject: [PATCH] Removed log statements and re-added page_id in taskpane to facilitate settings saves --- .../WithPersistedFilterCriteria/WithPersistedFilterCriteria.js | 2 -- .../WithPersistedFilteredClusteredTasks.js | 2 ++ src/components/TaskPane/TaskPane.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/HOCs/WithPersistedFilterCriteria/WithPersistedFilterCriteria.js b/src/components/HOCs/WithPersistedFilterCriteria/WithPersistedFilterCriteria.js index 0ca205b5e..4bcc2f255 100644 --- a/src/components/HOCs/WithPersistedFilterCriteria/WithPersistedFilterCriteria.js +++ b/src/components/HOCs/WithPersistedFilterCriteria/WithPersistedFilterCriteria.js @@ -53,7 +53,6 @@ export const WithFilterCriteria = function(WrappedComponent, ignoreURL = true, // We need to update the saved filter string with the new criteria // along with local state. if(this.props.saveCurrentSearchFilters) { - console.log('savecurrentsearchfilters ran') this.props.saveCurrentSearchFilters('taskBundleFilters', criteria) } } @@ -227,7 +226,6 @@ export const WithFilterCriteria = function(WrappedComponent, ignoreURL = true, } componentDidMount() { - if(this.props.savedFilters && this.props.savedFilters['taskBundleFilters']) { this.updateCriteriaFromSavedFilters(this.props.savedFilters['taskBundleFilters']) } diff --git a/src/components/HOCs/WithPersistedFilteredClusteredTasks/WithPersistedFilteredClusteredTasks.js b/src/components/HOCs/WithPersistedFilteredClusteredTasks/WithPersistedFilteredClusteredTasks.js index daf1a6262..acb29e28f 100644 --- a/src/components/HOCs/WithPersistedFilteredClusteredTasks/WithPersistedFilteredClusteredTasks.js +++ b/src/components/HOCs/WithPersistedFilteredClusteredTasks/WithPersistedFilteredClusteredTasks.js @@ -61,6 +61,8 @@ export default function WithFilteredClusteredTasks(WrappedComponent, filteredTasks: {tasks: []}, }) + + /** * Toggle filtering on or off for the given task status */ diff --git a/src/components/TaskPane/TaskPane.js b/src/components/TaskPane/TaskPane.js index 2e8981114..936399028 100644 --- a/src/components/TaskPane/TaskPane.js +++ b/src/components/TaskPane/TaskPane.js @@ -38,6 +38,7 @@ import messages from './Messages' const MobileTabBar = WithCurrentUser(MobileTaskDetails) const WIDGET_WORKSPACE_NAME = "taskCompletion" +const PAGE_ID = "TaskPane" // How frequently the task lock should be refreshed const LOCK_REFRESH_INTERVAL = 600000 // 10 minutes @@ -394,6 +395,7 @@ export class TaskPane extends Component { completionResponses={completionResponses} needsResponses={this.state.needsResponses} templateRevision={isCompletionStatus(this.props.task.status)} + pageId={PAGE_ID} /> {this.state.completingTask && this.state.completingTask === this.props.task.id &&