Skip to content

Commit

Permalink
Merge pull request #4620 from FlowFuse/hardillb-patch-1
Browse files Browse the repository at this point in the history
Only show warning if 10-file.js active
  • Loading branch information
hardillb authored Oct 7, 2024
2 parents 6168cc5 + fb1e3b9 commit ac9c834
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/pages/instance/Assets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ export default {
fileNodesDisabled () {
const settingsFile = this.instance.settings.palette?.nodesExcludes?.includes('10-file.js')
const templateFile = this.instance.template.settings.palette?.nodesExcludes?.includes('10-file.js')
return settingsFile || templateFile
if (this.instance.settings.palette?.nodesExcludes) {
// override template so only need to check settings
return settingsFile
} else {
// not overriding template so only need to check template
return templateFile
}
}
},
watch: {
Expand Down

0 comments on commit ac9c834

Please sign in to comment.