-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripts on Wizard #2487
Scripts on Wizard #2487
Conversation
depends on bluerobotics/Blueos-Parameter-Repository#6 |
@@ -648,6 +667,34 @@ export default Vue.extend({ | |||
}) | |||
.catch((error) => `Failed to fetch available firmware: ${error.message ?? error.response?.data}.`) | |||
}, | |||
async installScripts(): Promise<ConfigurationStatus> { | |||
const scripts_folder = 'configs/ardupilot-manager/firmware/scripts/' | |||
await filebrowser.createFolder('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what ? create a folder with empty name ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, this is wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the upside is we found out we don't need to explicitly create the folder
console.log(e) | ||
return `Failed to install scripts ${e}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(e) | |
return `Failed to install scripts ${e}` | |
const error = `Failed to install scripts ${e}` | |
console.log(error) | |
return error |
|
||
import { availableFirmwares, fetchCurrentBoard } from '../autopilot/AutopilotManagerUpdater' | ||
|
||
const REPOSITORY_ROOT = 'https://williangalvani.github.io/Blueos-Parameter-Repository_/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the trailing / for the path strings to be clear as path strings ?
E.g:
const REPOSITORY_URL = `${REPOSITORY_ROOT}/scripts_v1.json`
// Over
const REPOSITORY_URL = `${REPOSITORY_ROOT}scripts_v1.json`
@Williangalvani can you cherry-pick to 1.2 ? |
Needs more testing, but looking good so far. I'll review it tomorrow