mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2187 from HarshMN2345/fix-SER-188-Bug-completeness-indicator
This commit is contained in:
@@ -124,9 +124,18 @@
|
||||
|
||||
const progressCard = function getProgressCard() {
|
||||
if (selectedProject && !hasOnboardingDismissed(selectedProject.$id, $user)) {
|
||||
const { platforms, pingCount } = selectedProject;
|
||||
let percentage = 33;
|
||||
|
||||
if (platforms.length > 0 && pingCount === 0) {
|
||||
percentage = 66;
|
||||
} else if (pingCount > 0) {
|
||||
percentage = 100;
|
||||
}
|
||||
|
||||
return {
|
||||
title: 'Get started',
|
||||
percentage: selectedProject && selectedProject.platforms.length ? 100 : 33
|
||||
percentage
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user