From 678c2260e279ff91ec49bbc44ff254dc8e2bd20e Mon Sep 17 00:00:00 2001 From: Nicholas Murray Date: Tue, 15 Mar 2022 11:24:35 -0700 Subject: [PATCH 01/10] Add working button conditional --- src/pages/ReportSettingsPage.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/pages/ReportSettingsPage.js b/src/pages/ReportSettingsPage.js index 27e411d27ea5..9572953c732b 100644 --- a/src/pages/ReportSettingsPage.js +++ b/src/pages/ReportSettingsPage.js @@ -153,6 +153,7 @@ class ReportSettingsPage extends Component { const shouldShowRename = !ReportUtils.isPolicyExpenseChat(this.props.report); const shouldDisableRename = ReportUtils.isDefaultRoom(this.props.report) || ReportUtils.isArchivedRoom(this.props.report); + console.log(shouldDisableRename); const linkedWorkspace = _.find(this.props.policies, policy => policy.id === this.props.report.policyID); return ( @@ -199,17 +200,19 @@ class ReportSettingsPage extends Component { disabled={shouldDisableRename} /> -