44 :client =" client"
55 :sub-title =" getSubTitles"
66 :confirm-text =" getConfirmText"
7- :disabled-button =" disabledButton || externalServiceConfirmBtn"
7+ :disabled-button =" disabledButton || externalServiceConfirmBtn || lssEjectorEmptyClients "
88 click-outside-text =" Click outside to cancel"
99 @close-window =" closeWindow"
1010 @confirm-action =" confirmInstall"
@@ -21,7 +21,7 @@ import CustomModal from "./CustomModal.vue";
2121import AddPanel from " ./AddPanel" ;
2222import AddConnection from " ./AddConnection" ;
2323import MevboostRelays from " ./MevboostRelays.vue" ;
24- import { ref , onMounted , computed } from " vue" ;
24+ import { ref , onMounted , computed , watchEffect } from " vue" ;
2525import { useNodeManage } from " @/store/nodeManage" ;
2626import { useClickInstall } from " @/store/clickInstallation" ;
2727
@@ -42,6 +42,7 @@ const isAddPanelActivated = ref(false);
4242const isRelaysActivated = ref (false );
4343const isModifyActivated = ref (false );
4444const disabledButton = ref (false );
45+ const lssEjectorEmptyClients = ref (false )
4546// eslint-disable-next-line vue/no-setup-props-destructure
4647const properties = ref ({
4748 client: props .client ,
@@ -68,6 +69,8 @@ const getConfirmText = computed(() => {
6869 (props .client .category === " validator" && ! / Web3Signer/ .test (props .client .service ))
6970 ) {
7071 text = " next" ;
72+ } else if (props .client .category === " service" && props .client .service === " LssEjectorService" ) {
73+ text = " next"
7174 } else if (props .client .category === " service" && props .client .service !== " FlashbotsMevBoostService" ) {
7275 text = " confirm" ;
7376 } else if (props .client .category === " service" && props .client .service === " FlashbotsMevBoostService" ) {
@@ -93,6 +96,16 @@ const getSubTitles = computed(() => {
9396 return text;
9497});
9598
99+ watchEffect (() => {
100+ lssEjectorEmptyClients .value = (
101+ props .client .service === " LssEjectorService" &&
102+ getConfirmText .value === " confirm" &&
103+ (properties .value .executionClients .length === 0 ||
104+ properties .value .consensusClients .length === 0 ||
105+ properties .value .otherServices .length === 0 )
106+ )
107+ })
108+
96109const externalServiceConfirmBtn = computed (() => {
97110 if (props .client .service === " ExternalExecutionService" ) {
98111 return props .client .config .source === " " || props .client .config .jwtToken === " " ;
@@ -118,7 +131,8 @@ const confirmInstall = () => {
118131 emit (" confirmInstall" , properties .value );
119132 } else if (
120133 (props .client .category === " consensus" && getConfirmText .value === " next" ) ||
121- (props .client .category === " validator" && getConfirmText .value === " next" )
134+ (props .client .category === " validator" && getConfirmText .value === " next" ) ||
135+ (props .client .category === " service" && props .client .service === " LssEjectorService" && getConfirmText .value === " next" )
122136 ) {
123137 isAddPanelActivated .value = false ;
124138 isModifyActivated .value = true ;
0 commit comments