Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #5422, remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Dec 9, 2019
1 parent 33eeff1 commit 8716fe6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions server/src/promotion-strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ class PromotionStrategy {
}

/* Display edit tool promotion on shot page below edit button */
shouldShowEditToolPromotion(isOwner, enableAnnotations, hasFxaOnboardingDialog) {
shouldShowEditToolPromotion(
isOwner,
enableAnnotations,
hasFxaOnboardingDialog
) {
return false;
// Hide edit tool promotion when showing fxaOnboarding dialog
/*
if (!isOwner || !enableAnnotations || hasFxaOnboardingDialog) {
return false;
}
Expand All @@ -38,6 +44,7 @@ class PromotionStrategy {
show = true;
}
return show;
*/
}

/* Highlight edit tool icon on the shot page when user lands on shot page
Expand Down Expand Up @@ -77,7 +84,7 @@ class PromotionStrategy {
}

shouldShowDeprecation() {
return true;
return false;
}
}

Expand Down

0 comments on commit 8716fe6

Please sign in to comment.