bugfix: printer.cfg was no longer displayed after SAVE_CONFIG

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-08-02 16:29:16 +02:00
1 parent 45f200b40b
commit 19e2d36fdf
1 file changed
+4 -1
+4 -1
View File
@@ -131,7 +131,10 @@ export const actions: ActionTree<FileState, RootState> = {
break
case 'move_file':
commit('setMoveFile', payload)
if (payload.source_item?.path === 'printer_autosave.cfg' && payload.source_item?.root === 'config')
commit('setCreateFile', payload)
else
commit('setMoveFile', payload)
break
case 'delete_file':