Skip to content

Commit

Permalink
Reload GeneralSettings page every 8 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
aulisius committed Dec 14, 2022
1 parent f92dc34 commit adcdad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/GeneralSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { DashboardContent } from "./DashboardContent";

export function GeneralSettings(props) {
let { plugins } = props;
let cards = useCardManager(GeneralSettingsConfig(plugins));
let cards = useCardManager(GeneralSettingsConfig(plugins), {
refreshInterval: 8 * 1000,
});
const isLoading = !(cards ?? []).every(
(cardConfig) => cardConfig.isLoading == false
);
Expand Down

0 comments on commit adcdad5

Please sign in to comment.