Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions models/all/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ export default function buildModel (): Builder {
questionsId,
{
label: setting.string.Configure,
enabled: false,
enabled: true,
beta: false,
hidden: true,
hidden: false,
classFilter: defaultFilter
}
],
Expand Down
1 change: 1 addition & 0 deletions models/questions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@hcengineering/model-core": "workspace:^0.7.0",
"@hcengineering/model-tracker": "workspace:^0.7.0",
"@hcengineering/model-view": "workspace:^0.7.0",
"@hcengineering/model-print": "workspace:^0.7.0",
"@hcengineering/platform": "workspace:^0.7.20",
"@hcengineering/view": "workspace:^0.7.0"
}
Expand Down
11 changes: 10 additions & 1 deletion models/questions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { type Builder } from '@hcengineering/model'
import core from '@hcengineering/model-core'
import tracker from '@hcengineering/model-tracker'
import view, { createAction } from '@hcengineering/model-view'
import print from '@hcengineering/model-print'
import {
TAnswer,
TAssessment,
Expand Down Expand Up @@ -215,7 +216,15 @@ function defineActions (builder: Builder): void {
)

builder.mixin(questions.class.Question, core.class.Class, view.mixin.IgnoreActions, {
actions: [view.action.Open, view.action.OpenInNewTab, view.action.Delete, tracker.action.NewRelatedIssue]
actions: [
view.action.Open,
view.action.OpenInNewTab,
view.action.Delete,
tracker.action.NewRelatedIssue,
view.action.CopyLink,
view.action.AddRelation,
print.action.Print
]
})

createAction(
Expand Down
36 changes: 20 additions & 16 deletions models/view/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,24 +890,28 @@ export function createModel (builder: Builder): void {
view.action.Join
)

createAction(builder, {
action: view.actionImpl.ShowPopup,
actionProps: {
component: view.component.AddRelationPopup,
fillProps: {
_objects: 'value'
createAction(
builder,
{
action: view.actionImpl.ShowPopup as ViewAction<Record<string, any>>,
actionProps: {
component: view.component.AddRelationPopup,
fillProps: {
_objects: 'value'
}
},
label: core.string.AddRelation,
input: 'any',
icon: view.icon.CopyLink,
category: view.category.Editor,
target: core.class.Doc,
context: {
mode: ['context', 'browser'],
group: 'associate'
}
},
label: core.string.AddRelation,
input: 'any',
icon: view.icon.CopyLink,
category: view.category.Editor,
target: core.class.Doc,
context: {
mode: ['context', 'browser'],
group: 'associate'
}
})
view.action.AddRelation
)

createAction(
builder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,3 @@
{/await}
{/if}
</form>

<style lang="scss">
.actions {
height: 0.8rem;
overflow: visible;
}
</style>
3 changes: 2 additions & 1 deletion plugins/view/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ const view = plugin(viewId, {
RemoveRelation: '' as Ref<Action>,

CopyLink: '' as Ref<Action<Doc, any>>,
CopyDocumentMarkdown: '' as Ref<Action<Doc, any>>
CopyDocumentMarkdown: '' as Ref<Action<Doc, any>>,
AddRelation: '' as Ref<Action<Doc, any>>
},
viewlet: {
Table: '' as Ref<ViewletDescriptor>,
Expand Down
Loading