Skip to content

Commit d613aef

Browse files
authored
use of outdated custom widget scaffolder by npx fixed (#2383)
1 parent cffee03 commit d613aef

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/admin/custom-widgets/customWidgetDetailsModal.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { CopyableTextField } from '../utils/components/copyableTextField';
1717
import { UNIQUE_REQUIRED, validateField } from '../utils/validator';
1818

1919
interface CustomWidgetDetailsModalState {
20-
isEdit: boolean,
20+
isEdit: boolean,
2121
customWidget: TCustomWidgetConfig,
2222
saveButtonDisabled: boolean,
2323
showInstructions: boolean,
@@ -135,11 +135,11 @@ export class CustomWidgetDetailsModal extends React.Component
135135

136136
render(): JSX.Element {
137137
return <>
138-
{this.state.showDeleteConfirmation &&
138+
{this.state.showDeleteConfirmation &&
139139
<DeleteConfirmationOverlay
140140
deleteItemTitle={this.state.customWidget.displayName}
141141
onConfirm={this.deleteCustomWidget.bind(this)}
142-
onDismiss={this.closeDeleteConfirmation.bind(this)}
142+
onDismiss={this.closeDeleteConfirmation.bind(this)}
143143
/>
144144
}
145145
<Modal
@@ -164,7 +164,7 @@ export class CustomWidgetDetailsModal extends React.Component
164164
Stack>
165165
Stack>
166166
<div className="admin-modal-content">
167-
{this.state.isEdit &&
167+
{this.state.isEdit &&
168168
<CommandBarButton
169169
iconProps={deleteIcon}
170170
text="Delete"
@@ -209,7 +209,7 @@ export class CustomWidgetDetailsModal extends React.Component
209209
<CopyableTextField
210210
fieldLabel="downloading the code scaffold command"
211211
showLabel={false}
212-
copyableValue={`npx @azure/api-management-custom-widgets-scaffolder --displayName="${this.state.customWidget.displayName}" --technology="${this.state.customWidget.technology}" --openUrl="${window.location.origin}"`}
212+
copyableValue={`npx @azure/api-management-custom-widgets-scaffolder@latest --displayName="${this.state.customWidget.displayName}" --technology="${this.state.customWidget.technology}" --openUrl="${window.location.origin}"`}
213213
/>
214214
li>
215215
<li>

‎src/components/custom-widget-list/developmentInstructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TCustomWidgetConfig } from "../custom-widget";
55
import template from "./developmentInstructions.html";
66

77
const buildScaffoldCommand = ({displayName, technology}: TCustomWidgetConfig): string =>
8-
`npx @azure/api-management-custom-widgets-scaffolder --displayName="${displayName}" --technology="${technology}" --openUrl="${window.location.origin}"`
8+
`npx @azure/api-management-custom-widgets-scaffolder@latest --displayName="${displayName}" --technology="${technology}" --openUrl="${window.location.origin}"`
99

1010
@Component({
1111
selector: "development-instructions",

0 commit comments

Comments
 (0)