mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-06 12:27:58 +02:00
fix ghost load for dashboard campaign tables
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -104,9 +104,9 @@
|
||||
|
||||
const refresh = async () => {
|
||||
await Promise.all([
|
||||
refreshActiveCampaigns(false),
|
||||
refreshScheduledCampaigns(false),
|
||||
refreshCompletedCampaigns(false)
|
||||
refreshActiveCampaigns(true),
|
||||
refreshScheduledCampaigns(true),
|
||||
refreshCompletedCampaigns(true)
|
||||
]);
|
||||
};
|
||||
|
||||
|
||||
@@ -62,14 +62,14 @@
|
||||
};
|
||||
|
||||
// hooks
|
||||
onMount(() => {
|
||||
onMount(async () => {
|
||||
const context = appStateService.getContext();
|
||||
if (context) {
|
||||
contextCompanyID = context.companyID;
|
||||
contextCompanyName = context.companyName;
|
||||
}
|
||||
setEventTypes();
|
||||
refreshEvents(true);
|
||||
await refreshEvents(true);
|
||||
eventsTableURLParams.onChange(() => refreshEvents(true));
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user