Skip to content

Commit

Permalink
add support for MSG_4050: content no longer available
Browse files Browse the repository at this point in the history
  • Loading branch information
constantology committed Sep 21, 2017
1 parent 82f1f5e commit 7ccbdc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const MESSAGES = {
<p>This content will incur additional charges to republish. Please contact us for further details (<a href="mailto:syndication@ft.com">syndication@ft.com</a> or +44 (0)207 873 4816).</p>
<p>Please ensure you have considered your <a data-trackable="contractual-rights" href="/republishing/contract">contractual rights</a> before republishing.</p>`,
MSG_4000: `${EMPTY}<p>This content is not available for republishing.</p>`,
MSG_4050: `${EMPTY}<p>Sorry, this content is no longer available.</p>`,
MSG_4100: `${EMPTY}<p>You have reached your download limit for articles. Please contact your Account Manager to increase your limit.</p>`,
MSG_4200: `${EMPTY}<p>Your contract does not allow {{type}}s to be downloaded. Please contact your Account Manager to change this.</p>`,
MSG_5000: `${EMPTY}<p>Sorry, an error has occurred. Please try signing out and then in again. If error persists, please contact your Account Manager.</p>`
Expand Down
6 changes: 5 additions & 1 deletion src/js/modal-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ function createElement (item) {
trackableValueDownloadItem = 'download-saved-item';
}

if (item.canBeSyndicated === 'verify') {
if (item.notAvailable === true) {
downloadButtonState = 'disabled';
message = MESSAGES.MSG_4050;
}
else if (item.canBeSyndicated === 'verify') {
downloadButtonState = 'disabled';
message = MESSAGES.MSG_2200;
}
Expand Down

0 comments on commit 7ccbdc4

Please sign in to comment.