diff --git a/src/app/tabs/dashboard.component.html b/src/app/tabs/dashboard.component.html
index 7017af5c..24634350 100644
--- a/src/app/tabs/dashboard.component.html
+++ b/src/app/tabs/dashboard.component.html
@@ -15,8 +15,8 @@
Simulate
-
-
+
+
diff --git a/src/app/tabs/dashboard.component.ts b/src/app/tabs/dashboard.component.ts
index 9616347c..9b88bc0a 100644
--- a/src/app/tabs/dashboard.component.ts
+++ b/src/app/tabs/dashboard.component.ts
@@ -21,8 +21,8 @@ export class DashboardComponent {
simDisabledUsers: UserEntry[] = [];
simDeletedUsers: UserEntry[] = [];
simPromise: Promise;
+ simSinceLast: boolean = false;
syncPromise: Promise;
- sinceLast: boolean = false;
constructor(private i18nService: I18nService, private syncService: SyncService) { }
@@ -32,9 +32,15 @@ export class DashboardComponent {
}
async simulate() {
+ this.simGroups = null;
+ this.simUsers = null;
+ this.simEnabledUsers = [];
+ this.simDisabledUsers = [];
+ this.simDeletedUsers = [];
+
this.simPromise = new Promise(async (resolve, reject) => {
try {
- const result = await this.syncService.sync(!this.sinceLast, false);
+ const result = await this.syncService.sync(!this.simSinceLast, false);
this.simUsers = result[1];
this.simGroups = result[0];
} catch (e) {