File tree 1 file changed +9
-6
lines changed
frontend/public/extend/devconsole/components/source-to-image 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { getBuilderTagsSortedByVersion } from '../../../../components/image-stre
11
11
import { ButtonBar } from '../../../../components/utils/button-bar' ;
12
12
import PerspectiveLink from '../../shared/components/PerspectiveLink' ;
13
13
import { getActivePerspective } from '../../../../ui/ui-selectors' ;
14
- import { pathWithPerspective } from '../../../../components/utils/perspective' ;
15
14
import {
16
15
getPorts ,
17
16
getSampleRepo ,
@@ -144,13 +143,14 @@ class BuildSource extends React.Component<
144
143
const {
145
144
name,
146
145
namespace,
146
+ application,
147
147
selectedTag,
148
148
repository,
149
149
createRoute : canCreateRoute ,
150
150
ports,
151
151
} = this . state ;
152
- if ( ! name || ! selectedTag || ! namespace || ! repository ) {
153
- this . setState ( { error : 'Please complete all fields.' } ) ;
152
+ if ( ! name || ! selectedTag || ! namespace || ! application || ! repository ) {
153
+ this . setState ( { error : 'Please complete all required fields.' } ) ;
154
154
return ;
155
155
}
156
156
@@ -174,9 +174,12 @@ class BuildSource extends React.Component<
174
174
. then ( ( ) => {
175
175
this . setState ( { inProgress : false } ) ;
176
176
if ( ! this . state . error ) {
177
- history . push (
178
- pathWithPerspective ( activePerspective , `/overview/ns/${ this . state . namespace } ` ) ,
179
- ) ;
177
+ switch ( activePerspective ) {
178
+ case 'dev' :
179
+ history . push ( `/dev/topology/ns/${ this . state . namespace } ` ) ;
180
+ default :
181
+ history . push ( `/overview/ns/${ this . state . namespace } ` ) ;
182
+ }
180
183
}
181
184
} )
182
185
. catch ( ( ) => this . setState ( { inProgress : false } ) ) ;
You can’t perform that action at this time.
0 commit comments