• 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
..
annotator Loading commit data...
config Loading commit data...
directive Loading commit data...
filter Loading commit data...
test Loading commit data...
vendor Loading commit data...
annotation-mapper.js Loading commit data...
annotation-sync.coffee Loading commit data...
annotation-ui-controller.coffee Loading commit data...
annotation-ui-sync.coffee Loading commit data...
annotation-ui.coffee Loading commit data...
annotation-viewer-controller.coffee Loading commit data...
app-controller.coffee Loading commit data...
app.coffee Loading commit data...
auth-controller.js Loading commit data...
auth.js Loading commit data...
blocklist.js Loading commit data...
bridge.coffee Loading commit data...
create-group-form.js Loading commit data...
cross-frame.coffee Loading commit data...
discovery.coffee Loading commit data...
drafts.coffee Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
groups.js Loading commit data...
host.coffee Loading commit data...
identity.coffee Loading commit data...
karma-phantomjs-polyfill.js Loading commit data...
karma.config.js Loading commit data...
local-storage.coffee Loading commit data...
permissions.coffee Loading commit data...
pulse.coffee Loading commit data...
query-parser.coffee Loading commit data...
render.coffee Loading commit data...
search-filter.coffee Loading commit data...
session.js Loading commit data...
settings.js Loading commit data...
share-group-form.js Loading commit data...
site.js Loading commit data...
store.js Loading commit data...
stream-controller.coffee Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tags.coffee Loading commit data...
threading.coffee Loading commit data...
time.coffee Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
widget-controller.coffee Loading commit data...