This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 96e89832 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Some Fixes

parent eb8ffbd5
No related merge requests found
......@@ -74,7 +74,8 @@ export class BookmarkComponent implements OnInit, OnDestroy {
size: this.itemsPerPage,
sort: this.sort(),
})
.subscribe((res: HttpResponse<IUserWatchList[]>) => this.paginateUserWatchLists(res.body, res.headers));
.subscribe((res: HttpResponse<IUserWatchList[]>) => {this.paginateUserWatchLists(res.body, res.headers);
});
return;
}
......@@ -84,7 +85,18 @@ export class BookmarkComponent implements OnInit, OnDestroy {
size: this.itemsPerPage,
sort: this.sort(),
})
.subscribe((res: HttpResponse<IUserWatchList[]>) => this.paginateUserWatchLists(res.body, res.headers));
.subscribe((res: HttpResponse<IUserWatchList[]>) =>
{ this.paginateUserWatchLists(res.body, res.headers);
this.loadCurrent(); });
}
private loadCurrent(): void {
this.userWatchLists.every( (uwl) => {
if(this.isSelected(uwl)) {
this.view(uwl);
return false;
}
return true;})
}
reset(): void {
......@@ -237,14 +249,13 @@ export class BookmarkComponent implements OnInit, OnDestroy {
}
}
protected getCommonActions(): PluginActionInfo[] {
getCommonActions(): PluginActionInfo[] {
const result = lodash.chain(this.results)
.map(function(ex: Exercise) { return ex.originalResult.supportedActions })
.flatten()
// .sortedUniq();
.uniqWith(equalPluginActionInfo);
return result;
return result.value();
}
startAction(action: PluginActionInfo): void {
......@@ -254,7 +265,7 @@ export class BookmarkComponent implements OnInit, OnDestroy {
const basketInfo: ShoppingBasketInfo = {
plugin: action.plugin,
action: action.action,
itemInfos: selectedExercises,
itemInfos: selectedExercises.value(),
};
this.pluginService.getRedirectLink(basketInfo).subscribe(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment