mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Show basename in the title indicator
This commit is contained in:
parent
6d173339fc
commit
8a21ef105e
@ -317,7 +317,8 @@ const title: JupyterFrontEndPlugin<void> = {
|
||||
widget.node.onclick = async () => {
|
||||
const result = await renameDialog(docManager, current.context.path);
|
||||
if (result) {
|
||||
h.textContent = result.path;
|
||||
const basename = PathExt.basename(result.path);
|
||||
h.textContent = basename;
|
||||
if (router) {
|
||||
// TODO: better handle this
|
||||
const encoded = encodeURIComponent(result.path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user