/// <reference path='../../interfaces/ui-polymer.d.ts' />

Polymer({
  model: model,
  onlineTrustedUproxyContacts: model.contacts.onlineTrustedUproxy,
  offlineTrustedUproxyContacts: model.contacts.offlineTrustedUproxy,
  onlineUntrustedUproxyContacts: model.contacts.onlineUntrustedUproxy,
  offlineUntrustedUproxyContacts: model.contacts.offlineUntrustedUproxy,
  onlineNonUproxyContacts: model.contacts.onlineNonUproxy,
  offlineNonUproxyContacts: model.contacts.offlineNonUproxy,
  toggleSharing: function() {
    model.globalSettings.sharing = !this.model.globalSettings.sharing;
    core.updateGlobalSettings({newSettings:model.globalSettings,
                               path:this.path});
  },
  ready: function() {
    this.path = <InstancePath>{
      network : {
       name: this.network.name,
       userId: this.network.userId
      },
      userId: this.userId,
      instanceId: this.instance.instanceId
    };

    console.log('initializing roster');
    // this.contacts.push({
      // name: 'alice',
      // description: 'just some laptop'
    // });
    // this.contacts.push({ name: 'bob' });
    // this.contacts.push({ name: 'charlie' });
    // this.contacts.push({ name: 'dave' });
    // this.contacts.push({ name: 'eve' });
  },
  searchQuery: ''
});

/// <reference path='../../interfaces/ui-polymer.d.ts' />

Polymer({
  model: model,
  onlineTrustedUproxyContacts: model.contacts.onlineTrustedUproxy,
  offlineTrustedUproxyContacts: model.contacts.offlineTrustedUproxy,
  onlineUntrustedUproxyContacts: model.contacts.onlineUntrustedUproxy,
  offlineUntrustedUproxyContacts: model.contacts.offlineUntrustedUproxy,
  onlineNonUproxyContacts: model.contacts.onlineNonUproxy,
  offlineNonUproxyContacts: model.contacts.offlineNonUproxy,
  toggleSharing: function() {
    core.updateGlobalSettings({newSettings:model.globalSettings,
                               path:this.path});
  },
  ready: function() {
    this.path = <InstancePath>{
      network : {
       name: this.network.name,
       userId: this.network.userId
      },
      userId: this.userId,
      instanceId: this.instance.instanceId
    };

    console.log('initializing roster');
    // this.contacts.push({
      // name: 'alice',
      // description: 'just some laptop'
    // });
    // this.contacts.push({ name: 'bob' });
    // this.contacts.push({ name: 'charlie' });
    // this.contacts.push({ name: 'dave' });
    // this.contacts.push({ name: 'eve' });
  },
  searchQuery: ''
});

Remove reference to sharing status.
Remove reference to sharing status.
