Browse Source

Clean up title

Jason Grout 7 năm trước cách đây
mục cha
commit
38e8b0c726
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      packages/notebook-extension/src/index.ts

+ 1 - 5
packages/notebook-extension/src/index.ts

@@ -1028,11 +1028,7 @@ function addCommands(app: JupyterLab, services: ServiceManager, tracker: Noteboo
       const p = new CellPanel();
       p.id = `Cell-${uuid()}`;
       p.title.closable = true;
-      if (current.title.label) {
-        p.title.label = `Cell (${current.title.label})`;
-      } else {
-        p.title.label = 'Cell';
-      }
+      p.title.label = current.title.label ? `Cell: ${current.title.label}` : 'Cell';
       p.addWidget(newCell);
       shell.addToMainArea(p);
     },