Skip to content

Commit

Permalink
fix: routing and updatenextlaunch endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rowangamal committed Aug 18, 2024
1 parent fbced18 commit 010d51f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ router.beforeEach(async (to, from, next) => {
await userService.handleNextLaunch();
next();
} else {
await userService.nextlaunch();
next();
}
});
Expand Down
2 changes: 1 addition & 1 deletion client/src/services/userService.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default {
async setNextLaunch(value) {
await this.refresh_token();
return await authClient().put("/nextlaunch", {
on: value,
launched: value,
});
},
};
1 change: 0 additions & 1 deletion client/src/views/Admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
</v-dialog>
</div>
<div class="text-center">
<!-- <v-dialog width="auto"> -->
<template v-if="nextLaunchDialog">
<BaseButton color="green" text="Disable Next Launch" class="text-capitalize mr-2" @click="setNextLaunch"/>
</template>
Expand Down

0 comments on commit 010d51f

Please sign in to comment.