refactor: callback modal close text

This commit is contained in:
Zack Spear
2023-08-15 16:08:47 -07:00
parent 286cc08933
commit f75cc7ab33

View File

@@ -89,10 +89,7 @@ const subheading = computed(() => {
return '';
});
const closeText = computed(() => {
const txt = !connectPluginInstalled.value ? props.t('No thanks') : props.t('Close');
return refreshServerStateStatus.value === 'done' ? txt : props.t('Reload');
});
const closeText = computed(() => !connectPluginInstalled.value ? props.t('No thanks') : props.t('Close'));
const close = () => {
if (callbackStatus.value === 'loading') { return console.debug('[close] not allowed'); }
return refreshServerStateStatus.value === 'done'