Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async canActivate(params) {
await dispatchify(getCategories)();
await dispatchify(loadProjects)();
// this.taskQueue.queueMicroTask(() => {
// console.log(this.state);
// });
}
async canActivate(params) {
await dispatchify(getCategories)();
await dispatchify(loadProjects)();
// this.taskQueue.queueMicroTask(() => {
// console.log(this.state);
// });
}
filterCategory(category) {
dispatchify(setCategory)(category);
if (!this.state.backupProjects.length) {
// Backup the existing projects
dispatchify(backupProjects)();
}
dispatchify(sortCategories)(category);
}
filterCategory(category) {
dispatchify(setCategory)(category);
if (!this.state.backupProjects.length) {
// Backup the existing projects
dispatchify(backupProjects)();
}
dispatchify(sortCategories)(category);
}
filterCategory(category) {
dispatchify(setCategory)(category);
if (!this.state.backupProjects.length) {
// Backup the existing projects
dispatchify(backupProjects)();
}
dispatchify(sortCategories)(category);
}
vote(evt, name) {
if (this.userService.isLoggedIn) {
dispatchify(castVote)(name);
} else {
this.ea.publish('show.login-form');
}
}
}
sortByPopular() {
dispatchify(sortProjects)('popular');
}
sortByNewlyAdded() {
dispatchify(sortProjects)('new');
}