• Robert Knight's avatar
    Avoid reloading whole view when groups list changes · aacc0b3a
    Robert Knight authored
    When the client receives a notification that the
    list of groups changes, update just the groups list
    and, if necessary, focused group rather than reloading
    the whole view.
    
    This is done by splitting the SESSION_CHANGED event
    into finer-grained GROUPS_CHANGED and USER_CHANGED
    events. The <groups-list> directive now listens for
    GROUPS_CHANGED and updates itself in response.
    
    This fixes an issue where joining or leaving a group
    would always result in unsaved changes to annotation text
    being lost.
    
    If the user leaves a group which is currently focused and
    which has an unsaved changes to an annotation, that will still
    result in changes to the annotation being lost.
    
     * Add finer-grained GROUPS_CHANGED and USER_CHANGED
       events which components can react to.
    
     * Avoid directly exposing the groups service to the
       <group-list> template and instead only expose
       the required methods. This makes it easier to
       track what is going on in the template.
    
    Fixes #2641
    aacc0b3a
Name
Last commit
Last update
..
annotation-mapper-test.js Loading commit data...
annotation-sync-test.coffee Loading commit data...
annotation-ui-controller-test.coffee Loading commit data...
annotation-ui-sync-test.coffee Loading commit data...
annotation-ui-test.coffee Loading commit data...
annotation-viewer-controller-test.coffee Loading commit data...
app-controller-test.coffee Loading commit data...
auth-controller-test.coffee Loading commit data...
auth-test.js Loading commit data...
blocklist-test.js Loading commit data...
bootstrap.js Loading commit data...
bridge-test.coffee Loading commit data...
create-group-form-test.js Loading commit data...
cross-frame-test.coffee Loading commit data...
discovery-test.coffee Loading commit data...
features-test.js Loading commit data...
form-respond-test.coffee Loading commit data...
groups-test.js Loading commit data...
host-test.coffee Loading commit data...
identity-test.coffee Loading commit data...
local-storage-test.coffee Loading commit data...
permissions-test.coffee Loading commit data...
search-filter-test.coffee Loading commit data...
session-test.js Loading commit data...
store-test.js Loading commit data...
stream-controller-test.coffee Loading commit data...
streamer-test.js Loading commit data...
tags-test.coffee Loading commit data...
threading-test.coffee Loading commit data...
time-test.coffee Loading commit data...
unicode-test.coffee Loading commit data...
view-filter-test.coffee Loading commit data...
widget-controller-test.coffee Loading commit data...