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
This commit is contained in:
Kyle McCormick
2021-09-14 11:46:38 -04:00
committed by Kyle McCormick
parent f34606f8a4
commit f0239b724e

View File

@@ -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');
};
};