소스 검색

Fix popup text when reloading file from disk

Jeremy Tuloup 6 년 전
부모
커밋
d33cdc0247
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      packages/docmanager-extension/src/index.ts

+ 3 - 2
packages/docmanager-extension/src/index.ts

@@ -524,10 +524,11 @@ function addCommands(
         return;
       }
       const context = docManager.contextForWidget(shell.currentWidget);
+      const type = fileType();
       return showDialog({
-        title: 'Reload Notebook from Disk',
+        title: `Reload ${type} from Disk`,
         body: `Are you sure you want to reload
-          the notebook from the disk?`,
+          the ${type} from the disk?`,
         buttons: [Dialog.cancelButton(), Dialog.warnButton({ label: 'Reload' })]
       }).then(result => {
         if (result.button.accept && !context.isDisposed) {