From f0239b724edf7a7eeb76c44eae236f1394a6c37d Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Tue, 14 Sep 2021 11:46:38 -0400 Subject: [PATCH] fix: show creation rights notice on studio "courses" tab There was a JS bug that made it so the course creation rights notice (the thing that invites new studio users to request access to create content) disappeared if the user selected the "Courses" or "Libraries" tab. This is because it was incorrectly comparing the #courses-tab URL frament against the string "courses" instead of "courses-tab". TNL-8718 --- cms/static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/static/js/index.js b/cms/static/js/index.js index 432f99cd66..09c7de843e 100644 --- a/cms/static/js/index.js +++ b/cms/static/js/index.js @@ -168,7 +168,7 @@ define(['domReady', 'jquery', 'underscore', 'js/utils/cancel_on_escape', 'js/vie $('.libraries-tab').toggleClass('active', tab === 'libraries-tab'); // Also toggle this course-related notice shown below the course tab, if it is present: - $('.wrapper-creationrights').toggleClass('is-hidden', tab !== 'courses'); + $('.wrapper-creationrights').toggleClass('is-hidden', tab !== 'courses-tab'); }; };