Skip to content
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

UPDATE: alert box to add setting #2151

Merged
merged 4 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions launcher/src/components/UI/control-page/ControlScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<div class="Control-screen w-full h-full grid grid-cols-24 grid-rows-12 items-center bg-[#242529]">
<ControlHeader />
<CommonSidebar />
<AlertSection />
<AlertSection @expert-handler="expertModeHandlerAlert" />
<StakingSidebar />
<SidebarRight />
<ExpertWindow v-if="isExpertWindowOpen" :item="expertModeClient" bg-opacity="opacity-25" @hide-modal="hideExpertMode(item)" />
</div>
</base-layout>
</template>
Expand All @@ -15,18 +16,32 @@ import { useSetups } from "@/store/setups";
import { useFooter } from "@/store/theFooter";
import { useServices } from "@/store/services";

import { watch, computed } from "vue";
import { watch, computed, ref } from "vue";

import ControlHeader from "./sections/ControlHeader.vue";
import CommonSidebar from "./sections/CommonSidebar.vue";
import AlertSection from "./sections/AlertSection.vue";
import StakingSidebar from "./sections/StakingSidebar.vue";
import SidebarRight from "./sections/SidebarRight.vue";
import ExpertWindow from "../node-page/sections/ExpertWindow.vue";

const setupStore = useSetups();
const footerStore = useFooter();
const serviceStore = useServices();

const isExpertWindowOpen = ref(false);
const expertModeClient = ref(null);

const hideExpertMode = (el) => {
expertModeClient.value = el;
isExpertWindowOpen.value = false;
};

const expertModeHandlerAlert = (validator) => {
expertModeClient.value = validator;
isExpertWindowOpen.value = true;
};

const selectedConfigServices = computed(() => {
let services = [];
const selectedSetup = setupStore.selectedSetup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
</template>

<!-- csm green end -->

<div
v-if="synchronizationErrorControl && !alertShowState.includes('red')"
class="alert-message_red"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<template>
<div class="w-full h-full col-start-7 col-end-10 row-start-2 row-span-full flex justify-center items-center pt-2 pb-1">
<ControlAlert />
<ControlAlert @expert-handler="expertHandler" />
</div>
</template>

<script setup>
import ControlAlert from "../components/alert/ControlAlert.vue";

const emit = defineEmits(["expertHandler"]);

const expertHandler = (data) => {
emit("expertHandler", data);
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export default {
bgOpacity: {
type: String,
required: false,
default: "opacity-100",
},
leftDistance: {
type: String,
Expand Down
Loading