diff --git a/models/tags/src/plugin.ts b/models/tags/src/plugin.ts index 72031c8ad7..db83ba5f48 100644 --- a/models/tags/src/plugin.ts +++ b/models/tags/src/plugin.ts @@ -27,8 +27,7 @@ export default mergeIds(tagsId, tags, { Tags: '' as AnyComponent, TagReferencePresenter: '' as AnyComponent, TagsItemPresenter: '' as AnyComponent, - TagsFilter: '' as AnyComponent, - TagsEditorPopup: '' as AnyComponent + TagsFilter: '' as AnyComponent }, string: { TagElementLabel: '' as IntlString, diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index cad953cb36..384209968c 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -1509,6 +1509,58 @@ export function createModel (builder: Builder): void { tracker.action.SetSprint ) + createAction( + builder, + { + action: view.actionImpl.ShowPopup, + actionProps: { + component: tags.component.TagsEditorPopup, + element: 'top', + fillProps: { + _object: 'object' + } + }, + label: tracker.string.Labels, + icon: tags.icon.Tags, + keyBinding: ['keyL'], + input: 'focus', + category: tracker.category.Tracker, + target: tracker.class.Issue, + context: { + mode: ['context', 'browser'], + application: tracker.app.Tracker, + group: 'edit' + } + }, + tracker.action.SetLabels + ) + + createAction( + builder, + { + action: view.actionImpl.ShowPopup, + actionProps: { + component: tags.component.ObjectsTagsEditorPopup, + element: 'top', + fillProps: { + _objects: 'objects' + } + }, + label: tracker.string.Labels, + icon: tags.icon.Tags, + keyBinding: ['keyL'], + input: 'selection', + category: tracker.category.Tracker, + target: tracker.class.Issue, + context: { + mode: ['context', 'browser'], + application: tracker.app.Tracker, + group: 'edit' + } + }, + tracker.action.SetLabels + ) + createAction( builder, { diff --git a/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte b/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte new file mode 100644 index 0000000000..75deaa884a --- /dev/null +++ b/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte @@ -0,0 +1,72 @@ + + + + diff --git a/plugins/tags-resources/src/components/TagsEditorPopup.svelte b/plugins/tags-resources/src/components/TagsEditorPopup.svelte index 82cae8a602..b77d6dee28 100644 --- a/plugins/tags-resources/src/components/TagsEditorPopup.svelte +++ b/plugins/tags-resources/src/components/TagsEditorPopup.svelte @@ -1,3 +1,17 @@ +