Browse Source

close the correct editor on cancel

pull/1/head
Rob Colbert 3 years ago
parent
commit
97b465ce9a
  1. 2
      app/views/link/components/editor.pug

2
app/views/link/components/editor.pug

@ -14,7 +14,7 @@ mixin renderLinkEditor (editorId, link)
input(id="href", name="href", type="text", placeholder="Enter link URL", value= link ? link.href : undefined).uk-input
div(uk-grid).uk-grid-small
.uk-width-auto
button(type="button", uk-toggle={ target: '#link-editor' }).uk-button.dtp-button-default Cancel
button(type="button", uk-toggle={ target: editorId }).uk-button.dtp-button-default Cancel
.uk-width-auto
button(type="submit").uk-button.dtp-button-primary
+renderButtonIcon('fa-plus', link ? 'Update link' : 'Add link')
Loading…
Cancel
Save