@@ -9,14 +9,19 @@ import CentralLoadingWheel from '@/components/CentralLoadingWheel';
9
9
import { VirtualLabInfo } from '@/types/virtual-lab/common' ;
10
10
import { generateVlProjectUrl } from '@/util/virtual-lab/urls' ;
11
11
import { to64 } from '@/util/common' ;
12
+ import { EmodelTabKeys } from '@/components/explore-section/EModel/DetailView/SectionTabs' ;
12
13
13
- function getMEModelPageUrl ( meModelId : string , virtualLabInfo : VirtualLabInfo ) {
14
+ function getMEModelPageUrl ( meModelId : string , virtualLabInfo : VirtualLabInfo , tab ?: EmodelTabKeys ) {
14
15
const { virtualLabId, projectId } = virtualLabInfo ;
15
16
16
17
const vlProjectUrl = generateVlProjectUrl ( virtualLabId , projectId ) ;
17
18
const idSegment = to64 ( `${ virtualLabId } /${ projectId } !/!${ meModelId } ` ) ;
18
19
19
- return `${ vlProjectUrl } /explore/interactive/model/me-model/${ idSegment } ` ;
20
+ const searchParams = new URLSearchParams ( ) ;
21
+ if ( tab ) searchParams . set ( 'tab' , tab ) ;
22
+ const searchStr = searchParams . toString ( ) ;
23
+
24
+ return `${ vlProjectUrl } /explore/interactive/model/me-model/${ idSegment } ?${ searchStr } ` ;
20
25
}
21
26
22
27
// Format elapsed time as HH:mm:ss
@@ -80,7 +85,7 @@ function ValidationInit({
80
85
< CentralLoadingWheel
81
86
text = {
82
87
< >
83
- < div > Please don’ t close the window</ div >
88
+ < div > Please don' t close the window</ div >
84
89
< span className = "text-sm font-light" > Validation is launching</ span >
85
90
</ >
86
91
}
@@ -115,8 +120,9 @@ function ValidationRunning({
115
120
< p className = "text-primary-8" >
116
121
You can close the window at any time now. Analysis results will appear under the
117
122
< Link className = "ml-2 font-bold underline" href = { meModelPageUrl } >
118
- EModel details page
123
+ ME-model details page
119
124
</ Link >
125
+ .
120
126
</ p >
121
127
122
128
< CentralLoadingWheel
@@ -145,7 +151,7 @@ function ValidationSuccess({
145
151
} ) {
146
152
const router = useRouter ( ) ;
147
153
148
- const meModelPageUrl = getMEModelPageUrl ( meModelId , virtualLabInfo ) ;
154
+ const meModelPageUrl = getMEModelPageUrl ( meModelId , virtualLabInfo , 'analysis' ) ;
149
155
150
156
useEffect ( ( ) => {
151
157
const timer = setTimeout ( ( ) => {
@@ -160,10 +166,10 @@ function ValidationSuccess({
160
166
< h2 className = "items-start gap-x-2 text-4xl font-bold text-primary-8" >
161
167
Validation finished successfully
162
168
</ h2 >
163
- < p className = "text-primary-8" > You will be redirected to ME-Model page shortly</ p >
169
+ < p className = "text-primary-8" > You will be redirected to ME-model page shortly</ p >
164
170
165
171
< Link className = "border border-primary-8 px-4 py-2 text-primary-8" href = { meModelPageUrl } >
166
- View EModel details
172
+ View ME-model details
167
173
</ Link >
168
174
</ div >
169
175
) ;
@@ -184,7 +190,7 @@ function ValidationError({
184
190
< p className = "text-primary-8" > An unexpected error occurred during the validation process.</ p >
185
191
186
192
< Link className = "border border-primary-8 px-4 py-2 text-primary-8" href = { meModelPageUrl } >
187
- EModel details
193
+ ME-model details
188
194
</ Link >
189
195
</ div >
190
196
) ;
0 commit comments