• Lyza Danger Gardner's avatar
    Add `defaults` store module and `persistedDefaults` service · 539b2d31
    Lyza Danger Gardner authored
    Add a new store module for managing state of client-side defaults
    and a new service for a) retrieving those values from where they
    were persisted on initialization and b) subscribing to the store
    to watch for changes on those defaults—and persisting those changes.
    
    Update the `permissions` service to get/set its default annotation
    privacy level through the store instead of directly through
    `localStorage`.
    539b2d31
index.js 3.54 KB