harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Update the TOC in the current section or casebook after an addition #1971

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

…fixes #1965

When a legal doc is added, this will update the TOC in the current section or root of the casebook such that when the user closes the add-content modal, the new document is already in place in the table of contents.

codecov-commenter commented 1 year ago

Codecov Report

Merging #1971 (2eca4f6) into develop (b9d5ca1) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1971   +/-   ##
========================================
  Coverage    76.92%   76.92%           
========================================
  Files           60       60           
  Lines         6839     6839           
========================================
  Hits          5261     5261           
  Misses        1578     1578           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

lizadaly commented 1 year ago

I was pleasantly surprised by how little code this was!