Skip to content

Commit

Permalink
Merge pull request #6727 from getkirby/v5/changes/preview
Browse files Browse the repository at this point in the history
New dropdown with preview button
  • Loading branch information
bastianallgeier authored Oct 8, 2024
2 parents 4aa69e9 + adf1912 commit 71f77c6
Show file tree
Hide file tree
Showing 10 changed files with 1,518 additions and 937 deletions.
1 change: 1 addition & 0 deletions i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
"form.discard": "Discard changes",
"form.discard.confirm": "Do you really want to <strong>delete all unpublished changes</strong>?",
"form.locked": "This content is disabled for you as it is currently edited by another user",
"form.unsaved": "The current changes have not yet been saved",
"form.preview": "Preview changes",
"form.preview.draft": "Preview draft",

Expand Down
5 changes: 4 additions & 1 deletion panel/lab/components/formcontrols/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:is-unsaved="isUnsaved"
:is-locked="isLocked"
editor="editor@getkirby.com"
modified="5 minutes ago"
modified="2024-10-01T17:00:00"
preview="https://getkirby.com"
@discard="log('discard')"
@submit="log('submit')"
Expand Down Expand Up @@ -51,6 +51,9 @@
<k-lab-example label="Unsaved">
<k-form-controls
:is-unsaved="true"
editor="editor@getkirby.com"
modified="2024-10-01T17:00:00"
preview="https://getkirby.com"
@discard="log('discard')"
@submit="log('submit')"
/>
Expand Down
Loading

0 comments on commit 71f77c6

Please sign in to comment.