Parcourir la source

Merge pull request #4310 from overleaf/jel-reconfirmation-dropbox

Update Dropbox unlinked due to reconfirmation lapse notification

GitOrigin-RevId: 59a51040a430408595f37123e393bfafe090c656
Alasdair Smith il y a 5 ans
Parent
commit
e8376819ff

+ 6 - 1
services/web/app/views/project/list/notifications.pug

@@ -124,7 +124,12 @@ include ../../_mixins/reconfirm_affiliation
 					ng-switch-when="notification_dropbox_unlinked_due_to_lapsed_reconfirmation"
 					ng-switch-when="notification_dropbox_unlinked_due_to_lapsed_reconfirmation"
 				)
 				)
 					.notification-body
 					.notification-body
-						| !{translate("dropbox_unlinked_premium_feature", {}, ['strong'])}
+						if user.features.dropbox
+							| !{translate("dropbox_unlinked_premium_feature", {}, ['strong'])}
+							| !{translate("can_now_relink_dropbox", {}, [{name: 'a', attrs: {href: '/user/settings#dropboxSettings' }}])}
+						else
+							| !{translate("dropbox_unlinked_premium_feature", {}, ['strong'])}
+							| !{translate("confirm_affiliation_to_relink_dropbox")}
 						|  
 						|  
 						a(href="/learn/how-to/Institutional_Email_Reconfirmation") #{translate("learn_more")}
 						a(href="/learn/how-to/Institutional_Email_Reconfirmation") #{translate("learn_more")}
 					.notification-close
 					.notification-close

+ 5 - 3
services/web/locales/en.json

@@ -1463,7 +1463,8 @@
   "search": "Search",
   "search": "Search",
   "also": "Also",
   "also": "Also",
   "add_email": "Add Email",
   "add_email": "Add Email",
-  "dropbox_unlinked_premium_feature": "<0>Your Dropbox account has been unlinked</0> because Dropbox Sync is a premium feature that you had through an institutional license. Please confirm you are still at the institution or upgrade your account in order to relink your Dropbox account.",
+  "dropbox_unlinked_premium_feature": "<0>Your Dropbox account has been unlinked</0> because Dropbox Sync is a premium feature that you had through an institutional license.",
+  "confirm_affiliation_to_relink_dropbox": "Please confirm you are still at the institution and on their license, or upgrade your account in order to relink your Dropbox account.",
   "pay_with_visa_mastercard_or_amex": "Pay with Mastercard, Visa, or Amex",
   "pay_with_visa_mastercard_or_amex": "Pay with Mastercard, Visa, or Amex",
   "pay_with_paypal": "Pay with PayPal",
   "pay_with_paypal": "Pay with PayPal",
   "this_field_is_required": "This field is required",
   "this_field_is_required": "This field is required",
@@ -1476,5 +1477,6 @@
   "go_prev_page": "Go to Previous Page",
   "go_prev_page": "Go to Previous Page",
   "page_current": "Page __page__, Current Page",
   "page_current": "Page __page__, Current Page",
   "go_page": "Go to page __page__",
   "go_page": "Go to page __page__",
-  "pagination_navigation": "Pagination Navigation"
-}
+  "pagination_navigation": "Pagination Navigation",
+  "can_now_relink_dropbox": "You can now <0>relink your Dropbox account</0>."
+}