Skip to content

Commit

Permalink
add url to search, close panels on new search
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed Apr 24, 2024
1 parent 9c8b6d0 commit be439e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/components/views/search/SearchForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
});
async function searchSessions(){
emit("closeAllPanels");
let fromTime: string = "";
let toTime: string = "";
if(timePeriodRadio.value) [fromTime, toTime] = calcTimePeriod();
Expand Down Expand Up @@ -344,7 +345,6 @@
timeSelectionRadio.value = false;
timeSelectionPicker.value = null;
emit("closeAllPanels");
searchSessions();
}
Expand Down
5 changes: 2 additions & 3 deletions client/src/components/views/search/SearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
:sessions="session.sessions"
:metaData="{
screenProctoringMetadataWindowTitle: metadataSearchWindowTitle!,
screenProctoringMetadataUserAction: metadataSearchAction!
screenProctoringMetadataUserAction: metadataSearchAction!,
screenProctoringMetadataURL: metadataSearchUrl!,
}">
</SearchSessionTable>
</v-expansion-panel-text>
Expand Down Expand Up @@ -174,8 +175,6 @@
toTime: string,
pageNumber: number
){
//todo: fold all rows on new search
errorAvailable.value = false;
examNameSearch = examName == "" ? null : examName;
Expand Down
8 changes: 7 additions & 1 deletion client/src/components/views/search/SearchSessionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@
return;
}
const timelineSearchResponse: SearchTimeline | null = await searchViewService.searchTimeline(item.raw.sessionUUID, {screenProctoringMetadataWindowTitle: props.metaData.screenProctoringMetadataWindowTitle, screenProctoringMetadataUserAction: props.metaData.screenProctoringMetadataUserAction});
const timelineSearchResponse: SearchTimeline | null = await searchViewService.searchTimeline(
item.raw.sessionUUID,
{
screenProctoringMetadataWindowTitle: props.metaData.screenProctoringMetadataWindowTitle,
screenProctoringMetadataUserAction: props.metaData.screenProctoringMetadataUserAction,
screenProctoringMetadataURL: props.metaData.screenProctoringMetadataURL
});
if(timelineSearchResponse == null){
return;
Expand Down

0 comments on commit be439e8

Please sign in to comment.