DEV: removes jquery usage from admin-watched-words (#15246)

This commit is contained in:
Joffrey JAFFEUX 2021-12-09 17:06:54 +01:00 committed by GitHub
parent 3052eb6ae6
commit e0ea16f05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,9 @@ export default Controller.extend({
@action
toggleMenu() {
$(".admin-detail").toggleClass("mobile-closed mobile-open");
const adminDetail = document.querySelector(".admin-detail");
["mobile-closed", "mobile-open"].forEach((state) => {
adminDetail.classList.toggle(state);
});
},
});