From 3c2bdf2e5de279840d92a98f6c7edfdcd30598c0 Mon Sep 17 00:00:00 2001 From: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:31:42 +0530 Subject: [PATCH] Add conditional visibility for Current Active Users command in web virtual workspace and remove alt cmds (#1083) Co-authored-by: amitjoshi --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 85b0b689..d975488a 100644 --- a/package.json +++ b/package.json @@ -368,7 +368,8 @@ { "command": "powerPlatform.previewCurrentActiveUsers", "title": "Current Active Users", - "icon": "$(person)" + "icon": "$(person)", + "when": "isWeb && virtualWorkspace" }, { "command": "microsoft.powerplatform.pages.preview-site", @@ -661,12 +662,10 @@ { "when": "resourceLangId == html && !virtualWorkspace", "command": "microsoft-powerapps-portals.preview-show", - "alt": "microsoft-powerapps-portals.preview-show", "group": "navigation" }, { "command": "powerPlatform.previewCurrentActiveUsers", - "alt": "current active users", "group": "navigation", "when": "isWeb && virtualWorkspace" } @@ -819,6 +818,10 @@ { "command": "microsoft.powerplatform.pages.preview-site", "when": "microsoft.powerplatform.pages.siteRuntimePreviewEnabled" + }, + { + "command": "powerPlatform.previewCurrentActiveUsers", + "when": "isWeb && virtualWorkspace" } ], "view/title": [