Demo images / Build & push demo images (push) Failing after 1m56s
- "Back to Goals" now returns to Home's Setup tab (?tab=setup) instead of landing on the dashboard tab. - The channels screen remembers when a setup wizard sent you there (?from=goal) — its back button reads "Back to Setup" and returns to the wizard; it also now uses the shared BackButton pill instead of a bare link. - "Open & Configure" steps launch the actual app via the app launcher — iframe apps overlay on top of the wizard, tab-only apps (BTCPay, Nextcloud) open a tab, mobile uses the in-app browser — instead of routing to the app-details page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
34 lines
1008 B
Vue
34 lines
1008 B
Vue
<template>
|
|
<div class="pb-16 md:pb-4">
|
|
<BackButton :label="backLabel" desktop-margin="mb-6" @click="goBack" />
|
|
|
|
<h1 class="text-2xl font-bold text-white mb-6">Lightning Channels</h1>
|
|
|
|
<LightningChannelsPanel />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import BackButton from '@/components/BackButton.vue'
|
|
import LightningChannelsPanel from '@/components/LightningChannelsPanel.vue'
|
|
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
|
|
// When a setup wizard sent us here (?from=goal&goal=<id>), back returns to it.
|
|
const fromGoalId = computed(() =>
|
|
route.query.from === 'goal' && typeof route.query.goal === 'string' ? route.query.goal : null,
|
|
)
|
|
const backLabel = computed(() => (fromGoalId.value ? 'Back to Setup' : 'Back to LND'))
|
|
|
|
function goBack() {
|
|
if (fromGoalId.value) {
|
|
router.push(`/dashboard/goals/${fromGoalId.value}`)
|
|
} else {
|
|
router.replace('/dashboard/apps/lnd')
|
|
}
|
|
}
|
|
</script>
|