Skip to content

Commit 99c6e1e

Browse files
remove the function and the slider that allowed to choose the number of last changes to display.
1 parent 3e3fdf7 commit 99c6e1e

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

server/lib/field_hub_web/live/project_show.ex

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,6 @@ defmodule FieldHubWeb.Live.ProjectShow do
124124
{:noreply, assign(socket, :new_password, password)}
125125
end
126126

127-
def handle_event("change_count_select", %{"n-last-changes" => n} = _values, socket) do
128-
{n_integer, _remainder} = Integer.parse(n)
129-
130-
stats = Project.evaluate_project(socket.assigns.project, n_integer)
131-
132-
socket =
133-
socket
134-
|> assign(:stats, stats)
135-
|> assign(:n_changes_to_display, n_integer)
136-
137-
{:noreply, socket}
138-
end
139-
140127
def handle_event("delete_cache", _values, %{assigns: %{project: project}} = socket) do
141128
{:ok, true} = FieldHub.FileStore.clear_cache(project)
142129

server/lib/field_hub_web/live/project_show.html.heex

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,6 @@
6868

6969
<section>
7070
<tr>
71-
<%!-- <td valign="top" class="column-last-changes-slider">
72-
<form id="last_changes_form" phx-change="change_count_select"> --%>
73-
<%!-- Show the {@n_changes_to_display}<br /> last changes --%>
74-
<%!-- <div class="slider-container">
75-
<input
76-
type="range"
77-
min="2"
78-
max="100"
79-
value={@n_changes_to_display}
80-
class="slider"
81-
name="n-last-changes"
82-
/>
83-
</div> --%>
84-
<%!-- </form>
85-
</td> --%>
86-
<%!-- <td> --%>
87-
<%!-- <td>
88-
10 changes <br />
89-
50 changes <br />
90-
100 changes <br />
91-
All changes <br />
92-
</td> --%>
9371
<td>History</td>
9472
<td>
9573

0 commit comments

Comments
 (0)