@yemi33/minions 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dashboard/js/settings.js +5 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard/js/settings.js
CHANGED
|
@@ -135,16 +135,14 @@ async function saveSettings() {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
async function addProject() {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
const browseData = await browseRes.json();
|
|
142
|
-
if (browseData.cancelled || !browseData.path) return;
|
|
138
|
+
// Prompt for path directly — folder picker dialogs often open behind the browser
|
|
139
|
+
const projectPath = prompt('Enter the full path to your project directory:\n\ne.g. C:\\Users\\you\\repos\\my-project');
|
|
140
|
+
if (!projectPath) return;
|
|
143
141
|
|
|
144
|
-
|
|
142
|
+
try {
|
|
145
143
|
const addRes = await fetch('/api/projects/add', {
|
|
146
144
|
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
147
|
-
body: JSON.stringify({ path:
|
|
145
|
+
body: JSON.stringify({ path: projectPath.trim() })
|
|
148
146
|
});
|
|
149
147
|
const addData = await addRes.json();
|
|
150
148
|
if (!addRes.ok) { alert('Failed: ' + (addData.error || 'unknown')); return; }
|
package/package.json
CHANGED