mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 02:35:52 +03:00
os1: store.selected -> store.selectedGroups
This commit is contained in:
parent
660cabf074
commit
57d3f5327d
@ -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}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -22,7 +22,7 @@ class Store {
|
||||
contacts: {}
|
||||
},
|
||||
spinner: false,
|
||||
selected: [],
|
||||
selectedGroups: [],
|
||||
sidebarShown: true,
|
||||
pendingMessages: new Map([]),
|
||||
chatInitialized: false
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@ class Store {
|
||||
associations: {},
|
||||
permissions: {},
|
||||
invites: {},
|
||||
selected: [],
|
||||
selectedGroups: [],
|
||||
spinner: false
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -20,7 +20,7 @@ class Store {
|
||||
contacts: {}
|
||||
},
|
||||
invites: {},
|
||||
selected: [],
|
||||
selectedGroups: [],
|
||||
links: {},
|
||||
listening: new Set(),
|
||||
comments: {},
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ class Store {
|
||||
},
|
||||
permissions: {},
|
||||
invites: {},
|
||||
selected: [],
|
||||
selectedGroups: [],
|
||||
spinner: false,
|
||||
sidebarShown: true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user