Show resource progress on best practices
This commit is contained in:
1 parent
49cff0c22c
commit
2ca98bbb10
5 files changed
+137
-72
No files matched your search
@@ -10,6 +10,7 @@ import { httpGet } from '../../lib/http';
|
||||
import { isLoggedIn } from '../../lib/jwt';
|
||||
import {
|
||||
isTopicDone,
|
||||
refreshProgressCounters,
|
||||
renderTopicProgress,
|
||||
ResourceType,
|
||||
updateResourceProgress as updateResourceProgressApi,
|
||||
@@ -87,6 +88,7 @@ export function TopicDetail() {
|
||||
topicId,
|
||||
done.includes(topicId) ? 'done' : 'pending'
|
||||
);
|
||||
refreshProgressCounters();
|
||||
})
|
||||
.catch((err) => {
|
||||
alert(err.message);
|
||||
|
||||
Reference in new issue
Block a user