From 919167a54ebb6acd288cd8a76cfd73a879000232 Mon Sep 17 00:00:00 2001 From: Sharon Luong Date: Thu, 12 Oct 2023 16:36:27 -0400 Subject: [PATCH] BXC-4061 adding help text --- static/js/admin/src/ResultObject.js | 5 ++++- static/js/admin/src/action/AssignAsThumbnailAction.js | 2 +- static/js/admin/src/action/ClearAssignedThumbnailAction.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/admin/src/ResultObject.js b/static/js/admin/src/ResultObject.js index fb9414a937..fbb1d97b64 100644 --- a/static/js/admin/src/ResultObject.js +++ b/static/js/admin/src/ResultObject.js @@ -85,7 +85,7 @@ define('ResultObject', [ 'jquery', 'jquery-ui', 'underscore', 'ModalLoadingOverl case 'patron-settings': helpText = 'Patron access settings for this object have been added'; break; - case 'primary-object': + case 'is-primary-object': helpText = 'This file is the representative object for the work which contains it'; break; case 'staff-only': @@ -94,6 +94,9 @@ define('ResultObject', [ 'jquery', 'jquery-ui', 'underscore', 'ModalLoadingOverl case 'inherited-settings': helpText = 'Object is inheriting patron access settings which have been modified (typically they are more restrictive)'; break; + case 'assigned-as-thumbnail': + helpText = 'This file is the assigned thumbnail for the work which contains it'; + break; default: helpText = ''; } diff --git a/static/js/admin/src/action/AssignAsThumbnailAction.js b/static/js/admin/src/action/AssignAsThumbnailAction.js index 8ab757e626..c06775cbba 100644 --- a/static/js/admin/src/action/AssignAsThumbnailAction.js +++ b/static/js/admin/src/action/AssignAsThumbnailAction.js @@ -40,4 +40,4 @@ define('AssignAsThumbnailAction', [ 'jquery', 'AjaxCallbackAction'], function($, }; return AssignAsThumbnailAction; -}); \ No newline at end of file +}); diff --git a/static/js/admin/src/action/ClearAssignedThumbnailAction.js b/static/js/admin/src/action/ClearAssignedThumbnailAction.js index 3148585846..fa8f650252 100644 --- a/static/js/admin/src/action/ClearAssignedThumbnailAction.js +++ b/static/js/admin/src/action/ClearAssignedThumbnailAction.js @@ -27,6 +27,7 @@ define('ClearAssignedThumbnailAction', [ 'jquery', 'AjaxCallbackAction'], functi }; } + AjaxCallbackAction.prototype._create.call(this, options); };