mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 01:25:38 -05:00
Jobs/new step (#1734)
* added jobs view toolbar * create job command and dialog stub * add tab content and wire up the provider * fix the steps tab error * create job dialog 6/15 changes * general tab done * success action and retries completed * added failure action dropdown * add notification tab checkbox events * added AgentJobStepInfo objects in sqlops * create job dialog - 0618 update 1 * added model save function * width for controls and initial state for notification tab controls * refresh master and changes to work with latest code * fixed next and prev button positions * new step dialog ui finished * implemented parse button * fix package file * add validation and sub-items collections * hook up the step creation dialog - step 1 * merged master * fixed step issue, step can me made now
This commit is contained in:
@@ -103,10 +103,14 @@ export class NewStepAction extends Action {
|
||||
|
||||
public run(context: JobHistoryComponent): TPromise<boolean> {
|
||||
let ownerUri = context.ownerUri;
|
||||
let jobId = context.agentJobInfo.jobId;
|
||||
let jobName = context.agentJobInfo.name;
|
||||
let server = context.serverName;
|
||||
let stepId = 0;
|
||||
if (context.agentJobHistoryInfo && context.agentJobHistoryInfo.steps) {
|
||||
stepId = context.agentJobHistoryInfo.steps.length + 1;
|
||||
}
|
||||
return new TPromise<boolean>((resolve, reject) => {
|
||||
resolve(this._commandService.executeCommand('agent.openNewStepDialog', ownerUri, jobId, server));
|
||||
resolve(this._commandService.executeCommand('agent.openNewStepDialog', ownerUri, jobName, server, stepId));
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user