Commit e6c0c334 authored by Nur Rony's avatar Nur Rony

fixes delimiter removes when todo marked as done

parent 5a84b5fd
class Dashboard::TodosController < Dashboard::ApplicationController class Dashboard::TodosController < Dashboard::ApplicationController
include ActionView::Helpers::NumberHelper
before_action :find_todos, only: [:index, :destroy_all] before_action :find_todos, only: [:index, :destroy_all]
def index def index
...@@ -48,8 +50,8 @@ class Dashboard::TodosController < Dashboard::ApplicationController ...@@ -48,8 +50,8 @@ class Dashboard::TodosController < Dashboard::ApplicationController
def todos_counts def todos_counts
{ {
count: current_user.todos_pending_count, count: number_with_delimiter(current_user.todos_pending_count),
done_count: current_user.todos_done_count done_count: number_with_delimiter(current_user.todos_done_count)
} }
end end
end end
---
title: Fixes delimiter removes when todo marked as done
merge_request: 9435
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment