From a1fcfdaa50fe0ccce9579bdcbd68422d59ed5afd Mon Sep 17 00:00:00 2001 From: Jihyun Kang Date: Tue, 14 Jan 2025 19:01:39 +0900 Subject: [PATCH] fix: remove unnecessary panel disabling via querySelector at vfolder invitation panel in summary view page --- src/components/backend-ai-summary-view.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/backend-ai-summary-view.ts b/src/components/backend-ai-summary-view.ts index 891ecea9a..02ac97faf 100644 --- a/src/components/backend-ai-summary-view.ts +++ b/src/components/backend-ai-summary-view.ts @@ -389,7 +389,7 @@ export default class BackendAISummary extends BackendAIPage { } /** - * Accept invitation and make you can access vfloder. + * Accept invitation and make you can access vfolder. * * @param {Event} e - Click the accept button * @param {any} invitation @@ -398,12 +398,7 @@ export default class BackendAISummary extends BackendAIPage { if (!this.activeConnected) { return; } - const panel = e.target.closest('lablup-activity-panel'); try { - panel.setAttribute('disabled', 'true'); - panel.querySelectorAll('mwc-button').forEach((btn) => { - btn.setAttribute('disabled', 'true'); - }); await globalThis.backendaiclient.vfolder.accept_invitation(invitation.id); this.notification.text = _text('summary.AcceptSharedVFolder') + `${invitation.vfolder_name}`; @@ -426,13 +421,8 @@ export default class BackendAISummary extends BackendAIPage { if (!this.activeConnected) { return; } - const panel = e.target.closest('lablup-activity-panel'); try { - panel.setAttribute('disabled', 'true'); - panel.querySelectorAll('mwc-button').forEach((btn) => { - btn.setAttribute('disabled', 'true'); - }); await globalThis.backendaiclient.vfolder.delete_invitation(invitation.id); this.notification.text = _text('summary.DeclineSharedVFolder') + `${invitation.vfolder_name}`;