Browse Source

feat: show number of fixes made while vacuuming

tophf 4 years ago
parent
commit
544cfce864
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/options/views/tab-settings/vm-import.vue

+ 2 - 2
src/options/views/tab-settings/vm-import.vue

@@ -50,9 +50,9 @@ export default {
     async vacuum() {
       this.vacuuming = true;
       this.labelVacuum = this.i18n('buttonVacuuming');
-      await sendCmdDirectly('Vacuum');
+      const num = await sendCmdDirectly('Vacuum');
       this.vacuuming = false;
-      this.labelVacuum = this.i18n('buttonVacuumed');
+      this.labelVacuum = this.i18n('buttonVacuumed') + (num ? ` (${num})` : '');
     },
   },
   mounted() {