0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added button for saving changes made to the link

refs https://github.com/TryGhost/Team/issues/2125
This commit is contained in:
Djordje Vlaisavljevic 2022-10-20 12:18:56 +02:00
parent 0e094b371b
commit d1d3c1401f

View file

@ -23,7 +23,8 @@
<div class="gh-links-list-url">
{{#if (eq this.editingLink link.link.link_id)}}
<div class="gh-links-list-input-container {{if (eq this.showError link.link.link_id) "error"}}">
<input
<div class="gh-input-group">
<input
aria-label="Link"
type="text"
class="gh-input"
@ -36,6 +37,12 @@
{{autofocus}}
data-prevent-escape-close-modal="true"
/>
<GhTaskButton
@buttonText="Update"
@task={{this.setLink}}
@successText="Link updated"
@class="gh-btn gh-btn-green gh-btn-icon" />
</div>
<span class="gh-links-list-item-error">Please enter a valid link</span>
</div>
{{else}}