Skip to content

Commit c87eb0d

Browse files
authored
Allow users to select no resource in new KPI command (#1261)
1 parent af2b039 commit c87eb0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/newFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
789789
? {
790790
type: "quickPick",
791791
title: "Resource",
792-
items: serverResources,
792+
items: [{ label: "No Resource" }].concat(serverResources),
793793
}
794794
: {
795795
type: "inputBox",
@@ -819,7 +819,7 @@ Class ${cls} Extends %DeepSee.KPI
819819
820820
Parameter DOMAIN = "${kpiDomain}";
821821
822-
Parameter RESOURCE = "${kpiResource}";
822+
Parameter RESOURCE = "${kpiResource == "No Resource" ? "" : kpiResource}";
823823
824824
/// This XData definition defines the KPI.
825825
XData KPI [ XMLNamespace = "http://www.intersystems.com/deepsee/kpi" ]

0 commit comments

Comments
 (0)