瀏覽代碼

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) {