Skip to content

Commit

Permalink
Display Unsaved for unsaved changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Nov 15, 2023
1 parent 857ee07 commit 77ccfcf
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,18 @@ function RevisionsButtons( { userRevisions, selectedRevisionId, onChange } ) {
</span>
) : (
<span className="edit-site-global-styles-screen-revisions__description">
<time
className="edit-site-global-styles-screen-revisions__date"
dateTime={ modified }
>
{ displayDate }
</time>
{ isUnsaved ? (
<span className="edit-site-global-styles-screen-revisions__date">
{ __( '(Unsaved)' ) }
</span>
) : (
<time
className="edit-site-global-styles-screen-revisions__date"
dateTime={ modified }
>
{ displayDate }
</time>
) }
<span className="edit-site-global-styles-screen-revisions__changes">
{ getGlobalStylesChanges(
revision
Expand Down

0 comments on commit 77ccfcf

Please sign in to comment.