diff --git a/frontend/src/widgets/NodeList.vue b/frontend/src/widgets/NodeList.vue index 857d60f5..9a7798e5 100644 --- a/frontend/src/widgets/NodeList.vue +++ b/frontend/src/widgets/NodeList.vue @@ -24,6 +24,7 @@ const operationForm = ref({ const ALL = "all"; const currentStatus = ref(ALL); const { state, refresh: refreshOverviewInfo } = useOverviewInfo(); +const refreshLoading = ref(false); const remotes = computed(() => { const filterByName = (node: ComputedNodeInfo) => @@ -97,6 +98,18 @@ const editNode = async () => { } }; +const refresh = async () => { + try { + refreshLoading.value = true; + await refreshOverviewInfo(true); + message.success(t("TXT_CODE_fbde647e")); + } catch (error: any) { + message.error(error.message); + } finally { + refreshLoading.value = false; + } +}; + const editMode = ref(false); const editDialog = ref({ status: false, @@ -166,6 +179,9 @@ const editDialog = ref({