os1: store.selected -> store.selectedGroups

This commit is contained in:
Matilde Park 2020-03-30 16:45:34 -04:00
parent 660cabf074
commit 57d3f5327d
12 changed files with 12 additions and 12 deletions

View File

@ -52,7 +52,7 @@ export class Root extends Component {
inbox={state.inbox}
messagePreviews={messagePreviews}
associations={associations}
selectedGroups={state.selected}
selectedGroups={state.selectedGroups}
contacts={contacts}
invites={invites}
unreads={unreads}

View File

@ -27,7 +27,7 @@ export class LocalReducer {
setSelected(obj, state) {
let data = _.has(obj, 'selected', false);
if (data) {
state.selected = obj.selected;
state.selectedGroups = obj.selected;
}
}
}

View File

@ -22,7 +22,7 @@ class Store {
contacts: {}
},
spinner: false,
selected: [],
selectedGroups: [],
sidebarShown: true,
pendingMessages: new Map([]),
chatInitialized: false

View File

@ -35,7 +35,7 @@ export class Root extends Component {
(!!state.invites && '/contacts' in state.invites) ?
state.invites['/contacts'] : {};
let associations = !!state.associations ? state.associations : {};
let selectedGroups = !!state.selected ? state.selected : [];
let selectedGroups = !!state.selectedGroups ? state.selectedGroups : [];
return (
<BrowserRouter>

View File

@ -18,7 +18,7 @@ export class LocalReducer {
setSelected(json, state) {
let data = _.has(json, 'selected', false);
if (data) {
state.selected = json.selected;
state.selectedGroups = json.selected;
}
}
}

View File

@ -15,7 +15,7 @@ class Store {
associations: {},
permissions: {},
invites: {},
selected: [],
selectedGroups: [],
spinner: false
};

View File

@ -41,7 +41,7 @@ export class Root extends Component {
const invites = state.invites ?
state.invites : {};
let selectedGroups = !!state.selected ? state.selected : [];
let selectedGroups = !!state.selectedGroups ? state.selectedGroups : [];
return (
<BrowserRouter><Switch>

View File

@ -26,7 +26,7 @@ export class LocalReducer {
setSelected(obj, state) {
let data = _.has(obj, 'selected', false);
if (data) {
state.selected = obj.selected;
state.selectedGroups = obj.selected;
}
}
}

View File

@ -20,7 +20,7 @@ class Store {
contacts: {}
},
invites: {},
selected: [],
selectedGroups: [],
links: {},
listening: new Set(),
comments: {},

View File

@ -24,7 +24,7 @@ export class Root extends Component {
let contacts = !!state.contacts ? state.contacts : {};
let associations = !!state.associations ? state.associations : {contacts: {}}
let selectedGroups = !!state.selected ? state.selected : [];
let selectedGroups = !!state.selectedGroups ? state.selectedGroups : [];
return (
<BrowserRouter>

View File

@ -214,7 +214,7 @@ export class ResponseReducer {
setSelected(json, state) {
let data = _.has(json.data, 'selected', false);
if (data) {
state.selected = json.data.selected;
state.selectedGroups = json.data.selected;
}
}

View File

@ -17,7 +17,7 @@ class Store {
},
permissions: {},
invites: {},
selected: [],
selectedGroups: [],
spinner: false,
sidebarShown: true
}