Skip to content

Commit

Permalink
Merge pull request #15 from CityOfPhiladelphia/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
ajrothwell authored Jan 29, 2025
2 parents 0de4102 + 39de340 commit fa7c7fb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing_cache_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Testing caching with npm and push
on:
push:
branches:
- vue3-pinboard
- testing

jobs:
build:
Expand Down
42 changes: 27 additions & 15 deletions src/components/ExpandCollapseContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down Expand Up @@ -456,21 +468,6 @@ const transformPhone = (value) => {
</div>
</div>

<!-- <div
v-if="item.properties.ParentSelfServiceURL"
class="columns is-mobile"
>
<div class="column is-11">
<b>{{ $t('parentSelfServiceURL') }}:</b><a
target="_blank"
:href="makeValidUrl(item.properties.ParentSelfServiceURL)"
>
{{ item.properties.ParentSelfServiceURL }}
<font-awesome-icon icon="external-link-alt" />
</a>
</div>
</div> -->

<div
v-if="item.properties.FACEBOOK && item.properties.FACEBOOK !== 'Lloyd Hall'"
class="columns is-mobile website-div"
Expand Down Expand Up @@ -561,6 +558,21 @@ const transformPhone = (value) => {
</div>
</div>

<div
v-if="registrationOpen && item.properties.ParentSelfServiceURL"
class="columns is-mobile"
>
<div class="column is-11">
<a
:href="makeValidUrl(item.properties.ParentSelfServiceURL)"
target="_blank"
class="button is-primary"
>
Apply Now
</a>
</div>
</div>

<div
class="columns is-mobile"
>
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== ''
Expand Down

0 comments on commit fa7c7fb

Please sign in to comment.