diff --git a/app/components/ConnectorModal.vue b/app/components/ConnectorModal.vue index 25fb48895c..343fa24ce8 100644 --- a/app/components/ConnectorModal.vue +++ b/app/components/ConnectorModal.vue @@ -8,7 +8,10 @@ const tokenInput = shallowRef('') const portInput = shallowRef('31415') const { copied, copy } = useClipboard({ copiedDuring: 2000 }) +const hasAttemptedConnect = shallowRef(false) + async function handleConnect() { + hasAttemptedConnect.value = true const port = Number.parseInt(portInput.value, 10) || 31415 const success = await connect(tokenInput.value.trim(), port) if (success) { @@ -42,6 +45,7 @@ const executeNpmxConnectorCommand = computed(() => { watch(open, isOpen => { if (isOpen) { tokenInput.value = '' + hasAttemptedConnect.value = false } }) @@ -116,10 +120,58 @@ watch(open, isOpen => {
+ +
+
+ + {{ $t('connector.modal.contributor_badge') }} + +

+ + + +

+
+
+

{{ $t('connector.modal.run_hint') }}

+
+ $ + pnpm npmx-connector + +
+ +

{{ $t('connector.modal.paste_token') }}

@@ -193,9 +246,9 @@ watch(open, isOpen => { - +