diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index da8ec868..7821f4c7 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -35,6 +35,7 @@ interface AsyncProfilingState { instances: Instance[]; analyzeTrees: AsyncProfilerStackElement[]; loadingTree: boolean; + loadingTasks: boolean; } export const asyncProfilingStore = defineStore({ @@ -46,6 +47,7 @@ export const asyncProfilingStore = defineStore({ instances: [], analyzeTrees: [], loadingTree: false, + loadingTasks: false, }), actions: { setSelectedTask(task: Recordable) { @@ -55,14 +57,14 @@ export const asyncProfilingStore = defineStore({ this.analyzeTrees = tree; }, async getTaskList() { - const { durationTime } = useAppStoreWithOut(); const selectorStore = useSelectorStore(); + this.loadingTasks = true; const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({ request: { - queryDuration: durationTime, serviceId: selectorStore.currentService.id, }, }); + this.loadingTasks = false; if (res.data.errors) { return res.data; } diff --git a/src/views/dashboard/related/async-profiling/components/TaskList.vue b/src/views/dashboard/related/async-profiling/components/TaskList.vue index ff629260..ccf06102 100644 --- a/src/views/dashboard/related/async-profiling/components/TaskList.vue +++ b/src/views/dashboard/related/async-profiling/components/TaskList.vue @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->