Refactor session history into SFJS

This commit is contained in:
Mo Bitar
2018-07-20 16:08:23 -05:00
parent bc28ad78de
commit 0441087ca0
10 changed files with 68 additions and 288 deletions

View File

@@ -9,5 +9,5 @@
%a.close-button.info{"ng-click" => "restore(true)"} Restore as copy
%a.close-button.info{"ng-click" => "dismiss(); $event.stopPropagation()"} Close
.content.selectable
%h2 {{revision.content.title}}
%p.normal{"style" => "white-space: pre-wrap; font-size: 16px;"} {{revision.content.text}}
%h2 {{content.title}}
%p.normal{"style" => "white-space: pre-wrap; font-size: 16px;"} {{content.text}}

View File

@@ -2,7 +2,7 @@
.menu-panel.dropdown-menu
.header
.column
%h4.title {{history.revisions.length || 'No'}} revisions
%h4.title {{history.entries.length || 'No'}} revisions
%h4{"ng-click" => "showOptions = !showOptions; $event.stopPropagation();"}
%a Options
@@ -16,7 +16,7 @@
.sublabel
Saving to disk may increase app loading time and memory footprint.
%menu-row{"ng-repeat" => "revision in history.revisions",
%menu-row{"ng-repeat" => "revision in history.entries",
"ng-click" => "openRevision(revision); $event.stopPropagation();",
"label" => "revision.previewTitle()"}
.sublabel.opaque{"ng-class" => "classForRevision(revision)"}