fix: hide actions for archived teamspaces (#5580)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-05-10 23:27:42 +07:00 committed by GitHub
parent ccf7323589
commit 7d7e1ef412
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,7 +224,7 @@ function defineTeamspace (builder: Builder): void {
// Actions // Actions
builder.mixin(document.class.Teamspace, core.class.Class, view.mixin.IgnoreActions, { builder.mixin(document.class.Teamspace, core.class.Class, view.mixin.IgnoreActions, {
actions: [tracker.action.EditRelatedTargets] actions: [tracker.action.EditRelatedTargets, tracker.action.NewRelatedIssue]
}) })
createAction( createAction(
@ -256,6 +256,9 @@ function defineTeamspace (builder: Builder): void {
category: document.category.Document, category: document.category.Document,
target: document.class.Teamspace, target: document.class.Teamspace,
inline: true, inline: true,
query: {
archived: false
},
context: { context: {
mode: ['context', 'browser'], mode: ['context', 'browser'],
application: document.app.Documents, application: document.app.Documents,