fix: viya deploy makedata missing params
This commit is contained in:
@ -308,7 +308,11 @@ export class AutomaticComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.deployInNewWindow) {
|
if (this.deployInNewWindow) {
|
||||||
this.runMakedataInNewWindow(selectedComputeContextName)
|
this.runMakedataInNewWindow({
|
||||||
|
contextName: selectedComputeContextName,
|
||||||
|
admin: this.selectedAdminGroup,
|
||||||
|
dcPath: this.dcPath
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.sasJs
|
this.sasJs
|
||||||
.request(`services/admin/makedata`, data, overrideConfig, () => {
|
.request(`services/admin/makedata`, data, overrideConfig, () => {
|
||||||
@ -358,11 +362,17 @@ export class AutomaticComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public runMakedataInNewWindow(contextName: string) {
|
public runMakedataInNewWindow(params: {
|
||||||
|
contextName: string
|
||||||
|
admin: string
|
||||||
|
dcPath: string
|
||||||
|
}) {
|
||||||
let serverUrl = this.sasjsConfig.serverUrl
|
let serverUrl = this.sasjsConfig.serverUrl
|
||||||
let appLoc = this.sasjsConfig.appLoc
|
let appLoc = this.sasjsConfig.appLoc
|
||||||
const execPath = this.sasService.getExecutionPath()
|
const execPath = this.sasService.getExecutionPath()
|
||||||
let contextname = `&_contextname=${contextName}`
|
let contextname = `&_contextname=${params.contextName}`
|
||||||
|
let admin = `&_admin=${params.admin}`
|
||||||
|
let dcPath = `&_dcpath=${params.dcPath}`
|
||||||
let debug = `&_debug=131`
|
let debug = `&_debug=131`
|
||||||
|
|
||||||
let programUrl =
|
let programUrl =
|
||||||
@ -372,6 +382,8 @@ export class AutomaticComponent implements OnInit {
|
|||||||
appLoc +
|
appLoc +
|
||||||
'/services/admin/makedata' +
|
'/services/admin/makedata' +
|
||||||
contextname +
|
contextname +
|
||||||
|
admin +
|
||||||
|
dcPath +
|
||||||
debug
|
debug
|
||||||
|
|
||||||
window.open(programUrl)
|
window.open(programUrl)
|
||||||
|
Reference in New Issue
Block a user