Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Cache panel contents after first load #105

Merged
merged 1 commit into from
May 27, 2019

Commits on May 23, 2019

  1. Cache panel contents after first load

    Panels that do not have the preload attribute
    have their contents destroyed and recreated on each reopen.
    
    This causes issues such as inner text inputs and inner panels not
    remembering their previous state,
    and panels with src attribute repeating the same ajax request.
    
    See
    MarkBind/markbind#868
    MarkBind/markbind#483
    
    Let's have an additional `isCached` property, which is set to true
    whenever the content is/will be loaded. Only when isCached is true
    will the content be rendered and.
    
    As a side effect, since once the panel is loaded v-show is always used,
    the v-else part of the template is not needed anymore,
    which also reduces code duplication.
    openorclose committed May 23, 2019
    Configuration menu
    Copy the full SHA
    694cb9e View commit details
    Browse the repository at this point in the history