Skip to content

Commit

Permalink
fix: unable to edit new files.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Dec 23, 2020
1 parent 647bb4d commit 25aa5b9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/widgets/filesystem/FileSystemBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export default class FileSystemBrowser extends Mixins(UtilsMixin) {
}
createFile (name: string) {
const file = new File([''], name)
const file = new File([`# ${name}\n`], name)
this.$emit('upload-file', file, this.currentRoot, this.trimmedPath)
}
Expand Down
12 changes: 7 additions & 5 deletions src/store/socket/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,18 @@ export const actions: ActionTree<SocketState, RootState> = {

async onServerInfo ({ commit }, payload) {
// This payload should return a list of enabled plugins.
const plugins = [
'power',
'update_manager'
]
if (
payload.plugins &&
payload.plugins.length > 0
) {
commit('onPlugins', payload.plugins)
plugins.forEach((plugin) => {

// Init any plugins we need.
const pluginsToInit = [
'power',
'update_manager'
]
pluginsToInit.forEach((plugin) => {
if (payload.plugins.includes(plugin)) {
switch (plugin) {
case 'power':
Expand Down
7 changes: 5 additions & 2 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# TODO [fluidd]

## Next Up
- click on slider position won't update value
- add log downloads to printer page / elsewhere when not in error state
- draggable panels
- z-offset configuration + sheet config
- upload progress indicator
- add ability to delete bed mesh profile
-
- update panel collapse so these are remembered per instance
- stage 1 themes (pick a specific theme (red, green etc..)
- docker image
Expand Down

0 comments on commit 25aa5b9

Please sign in to comment.