From 3562e6bf7ab95185052fcee8d76d10b2e60b610b Mon Sep 17 00:00:00 2001 From: "rothwell.andy@gmail.com" Date: Wed, 29 Jan 2025 10:54:50 -0500 Subject: [PATCH 1/2] adds APPLY NOW button with ParentSelfServiceURL --- .github/workflows/testing_cache_and_push.yml | 2 +- src/components/ExpandCollapseContent.vue | 17 ++++++++++++++++- src/main.js | 6 +++--- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testing_cache_and_push.yml b/.github/workflows/testing_cache_and_push.yml index 070dc79..8bf8f9f 100644 --- a/.github/workflows/testing_cache_and_push.yml +++ b/.github/workflows/testing_cache_and_push.yml @@ -3,7 +3,7 @@ name: Testing caching with npm and push on: push: branches: - - vue3-pinboard + - testing jobs: build: diff --git a/src/components/ExpandCollapseContent.vue b/src/components/ExpandCollapseContent.vue index 0ce1738..672b26f 100644 --- a/src/components/ExpandCollapseContent.vue +++ b/src/components/ExpandCollapseContent.vue @@ -461,7 +461,7 @@ const transformPhone = (value) => { class="columns is-mobile" >
- {{ $t('parentSelfServiceURL') }}:{{ $t('parentSelfServiceURL') }}: @@ -561,6 +561,21 @@ const transformPhone = (value) => {
+
+ +
+
diff --git a/src/main.js b/src/main.js index a9a8d00..bdf6a2f 100644 --- a/src/main.js +++ b/src/main.js @@ -102,9 +102,9 @@ let $config = { }, customComps, hiddenRefine: { - isDemo(item) { - return item.properties.isdemo == "0" - }, + // isDemo(item) { + // return item.properties.isdemo == "0" + // }, SchoolYearOrSummer(item) { // return item.properties.SchoolYearOrSummer != 'School Year' && item.properties.isInPublicProgramDirectory == "1"; return item.properties.ProgramLocatorActivityName !== '' From 39de340f213da400188cd69059e8064aacca1c4d Mon Sep 17 00:00:00 2001 From: "rothwell.andy@gmail.com" Date: Wed, 29 Jan 2025 11:07:22 -0500 Subject: [PATCH 2/2] adds registrationOpen computed for hiding APPLY NOW button if there are no registration dates or current date is not in the window --- src/components/ExpandCollapseContent.vue | 29 +++++++++++------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/components/ExpandCollapseContent.vue b/src/components/ExpandCollapseContent.vue index 672b26f..0f8fb5c 100644 --- a/src/components/ExpandCollapseContent.vue +++ b/src/components/ExpandCollapseContent.vue @@ -17,6 +17,18 @@ const props = defineProps({ }); // computed +const registrationOpen = computed(() => { + if (props.item.properties.RegistrationPeriodStartDate && props.item.properties.RegistrationPeriodEndDate) { + if (new Date(props.item.properties.RegistrationPeriodStartDate) <= new Date() && new Date(props.item.properties.RegistrationPeriodEndDate) >= new Date()) { + return true; + } else { + return false; + } + } else { + return false; + } +}); + const hasFocusAreas = computed(() => { return props.item.properties.isArt || props.item.properties.isHealth || props.item.properties.isCharacterDevelopment || props.item.properties.isCommunityService || props.item.properties.isSTEM || props.item.properties.isCareerConnected; }); @@ -456,21 +468,6 @@ const transformPhone = (value) => {
- -
{