From 7d7e1ef4129832b1a7da7c09c355d2baf66b80b9 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Fri, 10 May 2024 23:27:42 +0700 Subject: [PATCH] fix: hide actions for archived teamspaces (#5580) Signed-off-by: Alexander Onnikov --- models/document/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/document/src/index.ts b/models/document/src/index.ts index 1605d26a09..6bf8a7b0f4 100644 --- a/models/document/src/index.ts +++ b/models/document/src/index.ts @@ -224,7 +224,7 @@ function defineTeamspace (builder: Builder): void { // Actions builder.mixin(document.class.Teamspace, core.class.Class, view.mixin.IgnoreActions, { - actions: [tracker.action.EditRelatedTargets] + actions: [tracker.action.EditRelatedTargets, tracker.action.NewRelatedIssue] }) createAction( @@ -256,6 +256,9 @@ function defineTeamspace (builder: Builder): void { category: document.category.Document, target: document.class.Teamspace, inline: true, + query: { + archived: false + }, context: { mode: ['context', 'browser'], application: document.app.Documents,