mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-17 05:18:52 +08:00
e755ff8122
* Force menu items into a single line * Add shortcut for saving the notebook * Make the disk icon always show file dialog * Split runtime and file settings into separate modals * Add ctrl+s to the shortcuts list * Add togglable menu to the session page * Make sure newly saved file appears in the file selector * Fix path seletor force reloading * Remove notebook generated in tests * Add test for file list refresh after save
13 lines
326 B
JavaScript
13 lines
326 B
JavaScript
const callbacks = {
|
|
onBeforeElUpdated(from, to) {
|
|
// Keep element attributes starting with data-js-
|
|
// which we set on the client.
|
|
for (const attr of from.attributes) {
|
|
if (attr.name.startsWith("data-js-")) {
|
|
to.setAttribute(attr.name, attr.value);
|
|
}
|
|
}
|
|
},
|
|
};
|
|
|
|
export default callbacks;
|