Browse Source

Update notebook extension command as well

Saul Shanabrook 6 years ago
parent
commit
97b32bbc84
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/notebook-extension/src/index.ts

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

@@ -1562,7 +1562,9 @@ function addCommands(
         app.commands.execute('docmanager:save');
         app.commands.execute('docmanager:save');
       }
       }
     },
     },
-    isEnabled
+    isEnabled: args => {
+      return isEnabled() && commands.isEnabled('docmanager:save', args);
+    }
   });
   });
 }
 }