mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-01 09:30:31 -04:00
Agent: Updated Alerts dialog UI (#1874)
* finished alert dialog UI * removed unused import
This commit is contained in:
@@ -164,7 +164,17 @@ export class AlertsViewComponent extends JobManagementView implements OnInit {
|
||||
|
||||
public openCreateAlertDialog() {
|
||||
let ownerUri: string = this._commonService.connectionManagementService.connectionInfo.ownerUri;
|
||||
this._commandService.executeCommand('agent.openAlertDialog', ownerUri);
|
||||
this._jobManagementService.getJobs(ownerUri).then((result) => {
|
||||
if (result && result.jobs.length > 0) {
|
||||
let jobs = [];
|
||||
result.jobs.forEach(job => {
|
||||
jobs.push(job.name);
|
||||
});
|
||||
this._commandService.executeCommand('agent.openAlertDialog', ownerUri, null, jobs);
|
||||
} else {
|
||||
this._commandService.executeCommand('agent.openAlertDialog', ownerUri, null, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private refreshJobs() {
|
||||
|
||||
Reference in New Issue
Block a user