forked from MapComplete/MapComplete
Refactoring: add more types to special visualisations arguments
This commit is contained in:
parent
0601a9df6f
commit
6bb33771b4
18 changed files with 81 additions and 29 deletions
|
@ -28,6 +28,7 @@ class CloseNoteViz extends SpecialVisualizationSvelte {
|
|||
{
|
||||
name: "text",
|
||||
doc: "Text to show on this button",
|
||||
type: "translation",
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
|
@ -39,6 +40,7 @@ class CloseNoteViz extends SpecialVisualizationSvelte {
|
|||
name: "idkey",
|
||||
doc: "The property name where the ID of the note to close can be found",
|
||||
defaultValue: "id",
|
||||
type:"key"
|
||||
},
|
||||
{
|
||||
name: "comment",
|
||||
|
@ -87,6 +89,7 @@ class AddNoteCommentViz extends SpecialVisualizationSvelte {
|
|||
name: "Id-key",
|
||||
doc: "The property name where the ID of the note to close can be found",
|
||||
defaultValue: "id",
|
||||
type:"key"
|
||||
},
|
||||
]
|
||||
public readonly group = "notes"
|
||||
|
@ -129,6 +132,7 @@ class AddImageToNote extends SpecialVisualizationSvelte {
|
|||
name: "Id-key",
|
||||
doc: "The property name where the ID of the note to close can be found",
|
||||
defaultValue: "id",
|
||||
type:"key"
|
||||
},
|
||||
]
|
||||
group = "notes"
|
||||
|
@ -150,6 +154,7 @@ class VisualiseNoteComment extends SpecialVisualization {
|
|||
name: "commentsKey",
|
||||
doc: "The property name of the comments, which should be stringified json",
|
||||
defaultValue: "comments",
|
||||
type:"key"
|
||||
},
|
||||
{
|
||||
name: "start",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue