Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion extensions/azurePublish/src/components/azureProvisionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ const onRenderLabel = (props) => {
);
};

const getResourceRegion = (item: ResourcesItem): string => {
const { key, region } = item;
switch (key) {
case AzureResourceTypes.APP_REGISTRATION:
case AzureResourceTypes.BOT_REGISTRATION:
return 'global';
default:
return region;
}
};

const reviewCols: IColumn[] = [
{
key: 'Icon',
Expand Down Expand Up @@ -235,7 +246,7 @@ const reviewCols: IColumn[] = [
onRender: (item: ResourcesItem) => {
return (
<div style={{ whiteSpace: 'normal', fontSize: '12px', color: NeutralColors.gray130 }}>
{item.key === AzureResourceTypes.APP_REGISTRATION ? 'global' : item?.region}
{getResourceRegion(item)}
</div>
);
},
Expand Down