Skip to content

Commit

Permalink
fix: improve ux
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Nov 16, 2024
1 parent 3651a9e commit 31997f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/views/ProfileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</p>
<div class="flex justify-end mt-8">
<button
class="flex items-center justify-center bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-full mr-2"
class="flex items-center justify-center bg-green-700 hover:bg-green-800 text-white font-bold py-2 px-4 rounded-full mr-2"
@click="onClickRedirectRooms"
>
管理社群
Expand Down
10 changes: 5 additions & 5 deletions src/views/TicketAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</div>
<div class="flex justify-end mt-8">
<button
class="flex items-center justify-center bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-full mr-3"
class="flex items-center justify-center bg-green-700 hover:bg-green-800 text-white font-bold py-2 px-4 rounded-full mr-3"
:disabled="isDisabled"
@click="onClickAccept"
>
Expand Down Expand Up @@ -163,12 +163,12 @@ const onClickAccept = async () => {
statusMessage.value = "接受成功";
setTimeout(() => {
router.push(`/rooms/${invitationData.roomCode}`);
}, 3000);
}, 1500);
} catch (error) {
statusMessage.value = "接受失敗";
isLoadAccept.value = false;
console.error(error);
}
isLoadAccept.value = false;
};
const onClickReject = async () => {
Expand All @@ -178,12 +178,12 @@ const onClickReject = async () => {
statusMessage.value = "拒絕成功";
setTimeout(() => {
router.push("/");
}, 3000);
}, 1500);
} catch (error) {
statusMessage.value = "拒絕失敗";
isLoadReject.value = false;
console.error(error);
}
isLoadReject.value = false;
};
onMounted(async () => {
Expand Down

0 comments on commit 31997f6

Please sign in to comment.