aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2022-10-20 10:12:36 +0200
committerGitHub <noreply@github.com>2022-10-20 10:12:36 +0200
commit2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a (patch)
tree6ec4bfbca57658543e0cf6d610af1c21f2de106c /src-vue/src/views/DeveloperView.vue
parent8edfb16aba17f082a3a0da891d8e49658bf36530 (diff)
parent9b4e032b73e3f40c8c4126a25356f467a833d239 (diff)
downloadFlightCore-2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a.tar.gz
FlightCore-2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a.zip
Merge branch 'GeckoEidechse:main' into refactor/router-view
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue32
1 files changed, 17 insertions, 15 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 71e09e30..dcc0c477 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -50,22 +50,24 @@ export default defineComponent({
});
},
async checkLinuxCompatibility() {
- let LinuxCompatible = await invoke("linux_checks");
- if (!LinuxCompatible) {
- ElNotification({
- title: 'Not linux compatible',
- message: 'GLIBC is not version 2.33 or greater',
- type: 'error',
- position: 'bottom-right'
- });
- } else {
- ElNotification({
- title: 'Linux compatible',
- message: 'No error reported',
- type: 'success',
- position: 'bottom-right'
+ await invoke("linux_checks")
+ .then(() => {
+ ElNotification({
+ title: 'Linux compatible',
+ message: 'All checks passed',
+ type: 'success',
+ position: 'bottom-right'
+ });
+ })
+ .catch((error) => {
+ ElNotification({
+ title: 'Not linux compatible',
+ message: error,
+ type: 'error',
+ position: 'bottom-right'
+ });
+ console.error(error);
});
- }
},
async toggleReleaseCandidate() {
// Flip between RELEASE and RELEASE_CANDIDATE