Skip to content

Commit

Permalink
Update endpoint data handling
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Jun 9, 2022
1 parent c5181b0 commit a575f1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/user_migration-personal-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/user_migration-personal-settings.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/components/ExportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</template>
{{ t('user_migration', 'Export') }}
</Button>
<span v-if="estimatedSize" class="settings-hint">{{ t('user_migration', 'Estimated size: {estimatedSize}', { estimatedSize: this.estimatedSize }) }}</span>
<span v-if="estimatedSizeWithUnits" class="settings-hint">{{ t('user_migration', 'Estimated size: {estimatedSizeWithUnits}', { estimatedSizeWithUnits: this.estimatedSizeWithUnits }) }}</span>
<div v-if="startingExport" class="icon-loading section__loading" />
</div>

Expand Down Expand Up @@ -167,7 +167,7 @@ export default {
data() {
return {
cancellingExport: false,
estimatedSize: null,
estimatedSizeWithUnits: null,
modalOpened: false,
selectedMigrators: [],
startingExport: false,
Expand Down Expand Up @@ -203,11 +203,11 @@ export default {
immediate: false,
async handler(migrators, oldMigrators) {
try {
const { size, units, warning } = await checkExportability(migrators)
const { estimatedSize, units, warning } = await checkExportability(migrators)
if (warning) {
handleWarning(warning)
}
this.estimatedSize = `${size} ${units}`
this.estimatedSizeWithUnits = `${estimatedSize} ${units}`
} catch (error) {
handleError(error)
}
Expand Down

0 comments on commit a575f1e

Please sign in to comment.