diff --git a/client/src/components/ProjectSettings.vue b/client/src/components/ProjectSettings.vue index 643d91aa..63f3e29d 100644 --- a/client/src/components/ProjectSettings.vue +++ b/client/src/components/ProjectSettings.vue @@ -17,10 +17,12 @@ export default defineComponent({ const importPath = ref(''); const exportPath = ref(''); + const globalImportExport = ref(false); watchEffect(() => { djangoRest.settings(currentProject.value.id).then((settings) => { importPath.value = settings.importPath; exportPath.value = settings.exportPath; + globalImportExport.value = settings.globalImportExport; }); }); @@ -37,6 +39,7 @@ export default defineComponent({ await djangoRest.setSettings(currentProject.value.id, { importPath: importPath.value, exportPath: exportPath.value, + globalImportExport: globalImportExport.value, }); changed.value = false; } catch (e) { @@ -57,6 +60,7 @@ export default defineComponent({ currentProject, importPath, exportPath, + globalImportExport, changed, importPathError, exportPathError, @@ -120,6 +124,29 @@ export default defineComponent({ /> + + + + + Global imports/exports will use the project name from the import file, which will + potentially modify other projects. + +