Skip to content

Commit

Permalink
Allow users to select no resource in new KPI command (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Oct 30, 2023
1 parent af2b039 commit c87eb0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/newFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
? {
type: "quickPick",
title: "Resource",
items: serverResources,
items: [{ label: "No Resource" }].concat(serverResources),
}
: {
type: "inputBox",
Expand Down Expand Up @@ -819,7 +819,7 @@ Class ${cls} Extends %DeepSee.KPI
Parameter DOMAIN = "${kpiDomain}";
Parameter RESOURCE = "${kpiResource}";
Parameter RESOURCE = "${kpiResource == "No Resource" ? "" : kpiResource}";
/// This XData definition defines the KPI.
XData KPI [ XMLNamespace = "http://www.intersystems.com/deepsee/kpi" ]
Expand Down

0 comments on commit c87eb0d

Please sign in to comment.