Repository navigation
fix: the button for associated documents within the shared knowledge base tag management section should be hidden #8232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
peslyn
merged 1 commit into
v3
from
pr@v3@fix_the_button_for_associated_documents_within_the_shared_knowledge_base_tag_management_section_shoule_be_hidden
Nov 30, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key observations:
Logic change:
disabled→v-if(intentional? verify UX)loadingand withoutdocEditpermission. Now it's hidden entirely whendocTagpermission is absent.Loss of
loadingguardloading(prevent double-clicks / actions mid-load). The new:disabled="!selectedDocuments.length"drops the loading check on the toolbar button, so the user can triggerhandleBatchLinkDocumentswhile data is still loading. Likely a regression. Re-add::disabled="loading && ...", now gone entirely. Consider restoring aloadingguard.Attribute order / mixing
v-ifwith other bindingsv-ifis placed after:icon, which works but is inconsistent style. Also note:v-if+@click+ disabled bindings — fine functionally, but keep a consistent ordering (place structural directives first).v-iffirst in the tag.Permission naming consistency
knowledgeDocPermissionis "document" scoped, but you're introducingdocTag. If tagging is a distinct capability, consider whether it belongs under this function or a separate guard/namespace (e.g.,docTagsemantics vs.docEdit). IfdocTagshould imply link/unlink rights, ensure backend perm definitions align.Inconsistent gating between toolbar and inline action
v-if="knowledgeDocPermission('docTag')"; inline row action also now gates on'docTag'. Good — they match. But previously both allowed viewing the control regardless of edit perms. Double-check that read-only users don't legitimately need to see these buttons (e.g., greyed out with tooltip).isSystemResource()branchperm.knowledge.system['docTag']actually exists; adding a method to the union type without a corresponding runtime permission likely throwsundefined is not a function. Ensure both system and non-system perm objects definedocTag.Minor optimization
knowledgeDocPermission(...)is called in template; if used in multiple places consider a computed (e.g.,canTag) to avoid repeated evaluation and keep template clean:Summary of actionable issues: (a) dropped
loadingguard on both buttons — likely unintended regression; (b) confirm hide-vs-disable UX intent; (c) ensuredocTagexists at runtime in all perm branches; (d) consider a computed and consistent directive ordering.