feat: Add link to the Docs for Unauthorized connections (#2035)
This commit is contained in:
parent
3604c677bc
commit
03020941bb
@ -18,6 +18,10 @@
|
|||||||
<v-divider class="mt-4 mb-5" />
|
<v-divider class="mt-4 mb-5" />
|
||||||
</template>
|
</template>
|
||||||
<div class="text-center mt-3">
|
<div class="text-center mt-3">
|
||||||
|
<v-btn v-if="helpButtonUrl" class="text--disabled mr-3" :href="helpButtonUrl" target="_blank">
|
||||||
|
<v-icon left>{{ mdiHelp }}</v-icon>
|
||||||
|
{{ $t('ConnectionDialog.Help') }}
|
||||||
|
</v-btn>
|
||||||
<v-btn class="primary--text" @click="reconnect">{{ $t('ConnectionDialog.TryAgain') }}</v-btn>
|
<v-btn class="primary--text" @click="reconnect">{{ $t('ConnectionDialog.TryAgain') }}</v-btn>
|
||||||
</div>
|
</div>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
@ -35,7 +39,7 @@ import BaseMixin from '@/components/mixins/base'
|
|||||||
|
|
||||||
import ThemeMixin from '@/components/mixins/theme'
|
import ThemeMixin from '@/components/mixins/theme'
|
||||||
import ConnectionStatus from '@/components/ui/ConnectionStatus.vue'
|
import ConnectionStatus from '@/components/ui/ConnectionStatus.vue'
|
||||||
import { mdiConnection } from '@mdi/js'
|
import { mdiConnection, mdiHelp } from '@mdi/js'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
@ -44,6 +48,7 @@ import { mdiConnection } from '@mdi/js'
|
|||||||
})
|
})
|
||||||
export default class TheConnectingDialog extends Mixins(BaseMixin, ThemeMixin) {
|
export default class TheConnectingDialog extends Mixins(BaseMixin, ThemeMixin) {
|
||||||
mdiConnection = mdiConnection
|
mdiConnection = mdiConnection
|
||||||
|
mdiHelp = mdiHelp
|
||||||
|
|
||||||
counter = 0
|
counter = 0
|
||||||
|
|
||||||
@ -89,6 +94,12 @@ export default class TheConnectingDialog extends Mixins(BaseMixin, ThemeMixin) {
|
|||||||
return this.$store.state.socket.connectionFailedMessage ?? null
|
return this.$store.state.socket.connectionFailedMessage ?? null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get helpButtonUrl() {
|
||||||
|
if (!this.$store.state.socket.connectionFailedMessage) return null
|
||||||
|
|
||||||
|
return `https://docs.mainsail.xyz/faq/mainsail_errors/connection-${this.connectionFailedMessage?.toLowerCase()}`
|
||||||
|
}
|
||||||
|
|
||||||
reconnect() {
|
reconnect() {
|
||||||
this.counter++
|
this.counter++
|
||||||
this.$store.dispatch('socket/setData', { connectingFailed: false })
|
this.$store.dispatch('socket/setData', { connectingFailed: false })
|
||||||
|
@ -155,6 +155,7 @@
|
|||||||
"CheckMoonrakerLog": "Wenn diese Meldung wiederholt erscheint, schaue bitte in die Logdatei unter:",
|
"CheckMoonrakerLog": "Wenn diese Meldung wiederholt erscheint, schaue bitte in die Logdatei unter:",
|
||||||
"Connecting": "Verbinde zu {host}",
|
"Connecting": "Verbinde zu {host}",
|
||||||
"Failed": "Verbindung fehlgeschlagen",
|
"Failed": "Verbindung fehlgeschlagen",
|
||||||
|
"Help": "Hilfe",
|
||||||
"Initializing": "Initialisieren",
|
"Initializing": "Initialisieren",
|
||||||
"TryAgain": "Erneut versuchen"
|
"TryAgain": "Erneut versuchen"
|
||||||
},
|
},
|
||||||
|
@ -156,6 +156,7 @@
|
|||||||
"Connecting": "Connecting to {host}",
|
"Connecting": "Connecting to {host}",
|
||||||
"ErrorMessage": "Error message: {message}",
|
"ErrorMessage": "Error message: {message}",
|
||||||
"Failed": "Connection failed",
|
"Failed": "Connection failed",
|
||||||
|
"Help": "Help",
|
||||||
"Initializing": "Initializing",
|
"Initializing": "Initializing",
|
||||||
"TryAgain": "try again"
|
"TryAgain": "try again"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user