Skip to content

Commit

Permalink
Refresh icon received action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxivinc committed Jun 18, 2024
1 parent 940358d commit 725cfb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"devtools_page": "extension/devtools-page.html",
"action": {
"default_icon": "images/logo.png",
"default_title": "GreenTrackr",
"default_title": "GreenTrackR",
"default_popup": "extension/menu.html"
},
"content_security_policy": {
Expand Down
16 changes: 10 additions & 6 deletions src/pages/Parcours.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
};
const onActionSave = async (component?: string) => {
document.getElementsByClassName("received")[0].style = '';
logDebug('Save ' + component);
await measureAcquisition.getNetworkMeasure(false);
const measure = await measureAcquisition.getGESMeasure(serverSearch, userSearch);
Expand All @@ -65,6 +66,7 @@
if (measure) {
results = [...results, measure];
}
document.getElementsByClassName("received")[0].style = 'display: block';
measureAcquisition.applyLatest();
};
Expand Down Expand Up @@ -101,18 +103,20 @@
<LoadingWheel />
<p class="in-progress-text">{translate('analysisInProgress')}</p>

{#if results.length}
<div class="flex-center">
<CheckIcon />
<p>{translate('receivedResults')}</p>
</div>
{/if}
<div class="flex-center received">
<CheckIcon />
<p>{translate('receivedResults')}</p>
</div>
{/if}
{#if results.length && !onGoingAnalysis}
<JourneyResults measures={results} />
{/if}

<style lang="scss">
div.received {
display: none;
}
.in-progress-text {
text-align: center;
}
Expand Down

0 comments on commit 725cfb6

Please sign in to comment.