diff --git a/app/controllers/products/unassigned_controller.rb b/app/controllers/products/unassigned_controller.rb index ed591dc5e20..a15ba97b12e 100644 --- a/app/controllers/products/unassigned_controller.rb +++ b/app/controllers/products/unassigned_controller.rb @@ -2,5 +2,7 @@ class Products::UnassignedController < ApplicationController before_action :require_staff_login - def index; end + def index + @product_deadline_day = ProductDeadline.first_or_create(alert_day: 4).alert_day + end end diff --git a/app/javascript/components/ElapsedDays.jsx b/app/javascript/components/ElapsedDays.jsx index c93cb4a8eed..207e4a7141b 100644 --- a/app/javascript/components/ElapsedDays.jsx +++ b/app/javascript/components/ElapsedDays.jsx @@ -1,6 +1,6 @@ import React from 'react' -export default function ElapsedDays({ countProductsGroupedBy }) { +export default function ElapsedDays({ countProductsGroupedBy, productDeadlineDay }) { const activeClass = (quantity) => { return quantity ? 'is-active' : 'is-inactive' } @@ -11,35 +11,35 @@ export default function ElapsedDays({ countProductsGroupedBy }) {
4日経過した提出物はありません
+{productDeadlineDay}日経過した提出物はありません
) } else if (selectedTab !== 'unassigned') { @@ -188,7 +189,7 @@ export default function Products({