Skip to content

Commit

Permalink
fix(ui) - always show feed url on final page
Browse files Browse the repository at this point in the history
fixes #53
  • Loading branch information
dnkbln authored Jan 1, 2025
1 parent 0eb7ef7 commit 9359a37
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions client/src/pages/onboarding/steps/import/NextSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { type Action } from 'redux';
import { computed, onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { mapState } from 'redux-vuex';
import { selectors } from '../../../../store';
import { mapState, injectStore } from 'redux-vuex';
import { selectors, actions } from '../../../../store';
import FinishCard from '../../components/FinishCard.vue';
import PodloveButton from '../../../../components/button/Button.vue';
Expand All @@ -70,6 +71,7 @@ import redirectIconUrl from '../../../../assets/next-redirect.svg';
import episodesIconUrl from '../../../../assets/next-check-episodes.svg';
const { t } = useI18n();
const { dispatch } = injectStore();
const state = mapState<{ feedUrl: string; site: string }>({
feedUrl: selectors.podcast.feed,
Expand All @@ -79,4 +81,9 @@ const state = mapState<{ feedUrl: string; site: string }>({
const episodesListLink = computed(() => `${state.site}/wp-admin/edit.php?post_type=podcast`);
const selectText = (event: MouseEvent) => (event?.target as HTMLInputElement).select();
onMounted(() => {
dispatch(actions.podcast.readFeedUrl() as Action);
});
</script>

0 comments on commit 9359a37

Please sign in to comment.