From c87eb0d85102d2e83e27894044096123db92abc5 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Mon, 30 Oct 2023 16:46:31 -0400 Subject: [PATCH] Allow users to select no resource in new KPI command (#1261) --- src/commands/newFile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/newFile.ts b/src/commands/newFile.ts index b6472069..cec7ae4a 100644 --- a/src/commands/newFile.ts +++ b/src/commands/newFile.ts @@ -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", @@ -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" ]