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:
committed by
Kyle McCormick
parent
f34606f8a4
commit
f0239b724e
@@ -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');
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user