File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ui/src/components/Sessions Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 77 color =" primary"
88 prepend-icon =" mdi-play"
99 variant =" outlined"
10+ :loading
1011 density =" comfortable"
1112 data-test =" connect-btn"
1213 @click =" openDialog"
@@ -62,6 +63,7 @@ const showDialog = ref(false);
6263const store = useStore ();
6364const snackbar = useSnackbar ();
6465const disabled = computed (() => ! props .recorded || ! props .authenticated );
66+ const loading = ref (false );
6567const logs = ref <string | null >(null );
6668const isCommunity = computed (() => envVariables .isCommunity );
6769const tooltipMessage = computed (() => props .recorded
@@ -84,12 +86,15 @@ const getSessionLogs = async () => {
8486
8587const displayDialog = async () => {
8688 try {
89+ loading .value = true ;
8790 await getSessionLogs ();
8891 showDialog .value = true ;
8992 } catch (error : unknown ) {
9093 snackbar .showError (" Failed to play the session." );
9194 handleError (error );
9295 }
96+
97+ loading .value = false ;
9398};
9499
95100const openDialog = () => {
You can’t perform that action at this time.
0 commit comments