Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
-->
<script lang="ts">
import { Analytics } from '@hcengineering/analytics'
import core, { AccountRole, Ref, Space } from '@hcengineering/core'

Check warning on line 17 in plugins/tracker-resources/src/components/NewIssueHeader.svelte

View workflow job for this annotation

GitHub Actions / formatting

'core' is defined but never used. Allowed unused vars must match /^\$\$(Props|Events|Slots)$/u
import { MultipleDraftController, createQuery, getClient } from '@hcengineering/presentation'
import { TrackerEvents } from '@hcengineering/tracker'
import { HeaderButton, showPopup } from '@hcengineering/ui'
Expand Down Expand Up @@ -69,7 +69,7 @@
function updateActions (draft: boolean, project: boolean, closed: boolean): void {
mainActionId = draft || !closed ? tracker.string.ResumeDraft : tracker.string.NewIssue
if (project) {
visibleActions = [tracker.string.CreateProject, mainActionId, tracker.string.Import]
visibleActions = [tracker.string.CreateProject, mainActionId]
} else {
visibleActions = [tracker.string.CreateProject]
}
Expand Down Expand Up @@ -102,12 +102,6 @@
label: tracker.string.NewIssue,
keyBindingPromise: newIssueKeyBindingPromise,
callback: newIssue
},
{
id: tracker.string.Import,
label: tracker.string.Import,
accountRole: AccountRole.User,
callback: newIssue
}
]}
/>
Loading