Skip to content

Commit

Permalink
研修終了日が7日以内の提出物には「次の経過日数まで:n時間」の情報を非表示にするように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
MikotoMakizuru committed Sep 14, 2024
1 parent 9b09dcc commit c38a508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/javascript/product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
span.a-meta__label 更新
| {{ product.updated_at }}
.card-list-item-meta__item(
v-if='isUnassignedProductsPage || isDashboardPage')
v-if='isGroupedByDaysElapsed && (isUnassignedProductsPage || isDashboardPage)')
time.a-meta(v-if='untilNextElapsedDays(product) < 1')
span.a-meta__label 次の経過日数まで
| 1時間未満
Expand Down Expand Up @@ -123,7 +123,8 @@ export default {
product: { type: Object, required: true },
isMentor: { type: Boolean, required: true },
currentUserId: { type: Number, required: true },
displayUserIcon: { type: Boolean }
displayUserIcon: { type: Boolean },
isGroupedByDaysElapsed: { type: Boolean }
},
computed: {
roleClass() {
Expand Down
6 changes: 4 additions & 2 deletions app/javascript/products.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
:product='product',
:currentUserId='currentUserId',
:isMentor='isMentor',
:display-user-icon='displayUserIcon')
:display-user-icon='displayUserIcon',
:isGroupedByDaysElapsed='false')

template(v-for='product_n_days_passed in productsGroupedByElapsedDays') <!-- product_n_days_passedはn日経過の提出物 -->
.a-card.h-auto(
Expand Down Expand Up @@ -87,7 +88,8 @@
:product='product',
:currentUserId='currentUserId',
:isMentor='isMentor',
:display-user-icon='displayUserIcon')
:display-user-icon='displayUserIcon',
:isGroupedByDaysElapsed='true')

.under-cards
.under-cards__links.mt-4.text-center.leading-normal.text-sm
Expand Down

0 comments on commit c38a508

Please sign in to comment.