refactor: relocate constants in screen stores
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import Background from "./Background.vue";
|
||||
import Buttons from "./Buttons.vue";
|
||||
import ButtonSelector from "~/components/Common/ButtonSelector.vue";
|
||||
import { promiseTimeout } from "@vueuse/core";
|
||||
|
||||
const store = useContactStore();
|
||||
const achievements = useAchievementsStore();
|
||||
@@ -71,10 +72,10 @@ const actionateButton = async (button: (typeof selected)["value"]) => {
|
||||
text: $t("contact.openUrl", { url }),
|
||||
onConfirm: async () => {
|
||||
store.pushNotification($t("contact.opened", { item: verb }));
|
||||
await sleep(100);
|
||||
await promiseTimeout(100);
|
||||
await navigateTo(content, { open: { target: "_blank " } });
|
||||
|
||||
await sleep(500);
|
||||
await promiseTimeout(500);
|
||||
|
||||
if (button === "github") {
|
||||
achievements.unlock("contact_git_visit");
|
||||
|
||||
Reference in New Issue
Block a user