From 973f151e075bb20b48697ca81aa19433bad38ec7 Mon Sep 17 00:00:00 2001 From: nasc17 <69922333+nasc17@users.noreply.github.com> Date: Tue, 9 Mar 2021 15:09:21 -0800 Subject: [PATCH] Add a note that opening new support request from ADS works only after uploading configuration to the cloud/portal (#14601) * Added note to support request page * Fixed note --- extensions/arc/src/localizedConstants.ts | 1 + .../src/ui/dashboards/postgres/postgresSupportRequestPage.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/extensions/arc/src/localizedConstants.ts b/extensions/arc/src/localizedConstants.ts index 0821cfa568..37432bc575 100644 --- a/extensions/arc/src/localizedConstants.ts +++ b/extensions/arc/src/localizedConstants.ts @@ -79,6 +79,7 @@ export const resetAllToDefault = localize('arc.resetAllToDefault', "Reset all to export const resetToDefault = localize('arc.resetToDefault', "Reset to default"); export const troubleshoot = localize('arc.troubleshoot', "Troubleshoot"); export const clickTheNewSupportRequestButton = localize('arc.clickTheNewSupportRequestButton', "Click the new support request button to file a support request in the Azure Portal."); +export const supportRequestNote = localize('arc.supportRequestNote', "Note that the resource configuration must have been uploaded to Azure first in order to open a support request."); export const running = localize('arc.running', "Running"); export const ready = localize('arc.ready', "Ready"); export const notReady = localize('arc.notReady', "Not Ready"); diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts index ebb9c81bcf..3746afcf7a 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresSupportRequestPage.ts @@ -44,6 +44,11 @@ export class PostgresSupportRequestPage extends DashboardPage { CSSStyles: { ...cssStyles.text, 'margin-bottom': '20px' } }).component()); + content.addItem(this.modelView.modelBuilder.text().withProperties({ + value: loc.supportRequestNote, + CSSStyles: { ...cssStyles.text, 'margin-bottom': '20px' } + }).component()); + const supportRequestButton = this.modelView.modelBuilder.button().withProperties({ iconPath: IconPathHelper.support, label: loc.newSupportRequest,