You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to edit the tags on an existing article, the KB tags are not shown. Looks like the .KnowledgeBaseTagSelector is not being injected into the modal div element.
When manually adding that class to the div, I see the appropriate tags.
Is this an easy fix?
The text was updated successfully, but these errors were encountered:
Tracked it down. Should be super easy to resolve. The "edit tags" button is using the TagDiscussionModal class. Rather it should be using the KnowledgeBadeTagModal class.
The relevant code for creating a new article correctly references the KnowledgeBadeTagModal class:
The KnowledgeBadeTagModal class extends the TagDiscussionModal class:
The edit article editor incorrectly uses the underlying TagDiscussionModal class. This should really be usingKnowledgeBadeTagModal:
Anyone else having this issue can use this scriptmonkey script:
// ==UserScript==// @name Add modal class for knowledgebase// @namespace http://tampermonkey.net/// @version 0.1// @description try to take over the world!// @author You// @match https://support.lumifylabs.com/knowledgebase/*// @icon https://www.google.com/s2/favicons?sz=64&domain=lumifylabs.com// @grant none// ==/UserScript==(function(){const$=document.querySelector.bind(document);letint=setInterval(()=>{letmodal=$('div.TagDiscussionModal:not(.KnowledgeBaseTagSelector)')if(modal){console.log('found!')modal.classList.add("KnowledgeBaseTagSelector");//window.clearInterval(int);}console.log('still looking')},1500);})();
When trying to edit the tags on an existing article, the KB tags are not shown. Looks like the
.KnowledgeBaseTagSelector
is not being injected into the modal div element.When manually adding that class to the div, I see the appropriate tags.
Is this an easy fix?
The text was updated successfully, but these errors were encountered: