Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WiktorNowikow/0ec1fbd2e3fde633187b9b3809620da4 to your computer and use it in GitHub Desktop.
Save WiktorNowikow/0ec1fbd2e3fde633187b9b3809620da4 to your computer and use it in GitHub Desktop.
public loadGlosItemStatuses():Observable<void>{
return this.commonLocalGlossariesClient
.getGlosItemStatuses()
.pipe(map((result:DictionaryItem[])=>{
this.state.setGlosItemStatuses(result.map(p => ({label: p.key, value: p.value})));
let glosItemStatusesForTable=[];
result.map(p => glosItemStatusesForTable[p.value]=p.key);
this.state.setGlosItemStatusesForTable(glosItemStatusesForTable);
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment