Skip to content

Commit

Permalink
Merge pull request #961 from dbauszus-glx/cloudinary-entry-update
Browse files Browse the repository at this point in the history
cloudinary postUpdate method
  • Loading branch information
RobAndrewHurst authored Oct 13, 2023
2 parents 13d4856 + f0eddb3 commit d2c9450
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 154 deletions.
17 changes: 17 additions & 0 deletions lib/ui/locations/entries/_entries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
documents: cloudinary,
geometry,
html: textarea,
image: cloudinary,
images: cloudinary,
integer: numeric,
json,
Expand All @@ -52,6 +53,7 @@ export default {
text,
textarea,
time,
title,
vector_layer
}

Expand All @@ -63,4 +65,19 @@ function key(entry) {
${entry.location.layer.name}`

return node
}

function title(entry) {

const tooltipSpan = entry.tooltip ? mapp.utils.html`
<span
style="line-height: 1; margin-left: 0.4em;"
class="mobile-display-none mask-icon question-mark">${entry.tooltip}` : '';

return mapp.utils.html.node`
<div
class="label"
style=${entry.css_title}
title=${entry.tooltip}>${entry.title}
${tooltipSpan}`
}
Loading

0 comments on commit d2c9450

Please sign in to comment.