forked from MapComplete/MapComplete
Improve share functionality
This commit is contained in:
parent
df6e47faa8
commit
6cd3c15544
6 changed files with 68 additions and 18 deletions
|
@ -1583,6 +1583,7 @@
|
|||
},
|
||||
{
|
||||
"id": "last_edit",
|
||||
"labels": ["added_by_default"],
|
||||
"description": "Gives some metainfo about the last edit and who did edit it - rendering only",
|
||||
"condition": {
|
||||
"and": [
|
||||
|
@ -1622,6 +1623,7 @@
|
|||
},
|
||||
{
|
||||
"id": "just_created",
|
||||
"labels": ["added_by_default"],
|
||||
"description": "This element shows a 'thank you' that the contributor has recently created this element",
|
||||
"classes": "rounded-xl thanks",
|
||||
"mappings": [
|
||||
|
@ -2609,6 +2611,34 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "qr_code",
|
||||
"labels": ["added_by_default"],
|
||||
"classes": "flex items-center gap-x-2",
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "qr_code"
|
||||
},
|
||||
"after": {
|
||||
"en": "Scan this code to open this location on another device",
|
||||
"nl": "Scan deze code om deze locatie op een ander apparaat te zien"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "share",
|
||||
"labels": ["added_by_default"],
|
||||
"metacondition": "_supports_sharing=yes",
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "share_link",
|
||||
"text": {
|
||||
"en": "Share this location",
|
||||
"nl": "Deel deze locatie"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue