Skip to content

Commit cf20843

Browse files
committed
style: remove undeploy button from apps list view for safer UX
1 parent a4da5b6 commit cf20843

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎internal/http/templates/apps_list.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ <h3 style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.5rem">
1919
<th data-sort="disk" data-type="number" style="cursor:pointer;user-select:none">Disk <span class="sort-arrow" style="font-size:0.8em;opacity:0.6"></span></th>
2020
<th data-sort="domain" data-type="string" style="cursor:pointer;user-select:none">Domain <span class="sort-arrow" style="font-size:0.8em;opacity:0.6"></span></th>
2121
<th data-sort="port" data-type="number" style="cursor:pointer;user-select:none">Port <span class="sort-arrow" style="font-size:0.8em;opacity:0.6"></span></th>
22-
<th></th>
2322
</tr>
2423
</thead>
2524
<tbody>
@@ -38,12 +37,6 @@ <h3 style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.5rem">
3837
<td>{{with $st := index $.AppStats .ID}}{{formatBytes $st.DiskUsageBytes}}{{else}}-{{end}}</td>
3938
<td style="white-space:nowrap">{{if .Domain}}<a href="https://{{.Domain}}" target="_blank" rel="noopener noreferrer">{{.Domain}}</a>{{else}}-{{end}}</td>
4039
<td>{{.Port}}</td>
41-
<td style="width:1%;white-space:nowrap">
42-
<form method="POST" action="apps/{{.ID}}/undeploy" style="display:inline"
43-
onsubmit="return confirm('{{if eq .Status "draft"}}Delete draft {{.Name}}?{{else}}Undeploy {{.Name}}? This will stop and remove the app.{{end}}')">
44-
<button type="submit" class="btn btn-ghost btn-red">{{if eq .Status "draft"}}Delete{{else}}Undeploy{{end}}</button>
45-
</form>
46-
</td>
4740
</tr>
4841
{{end}}
4942
</tbody>

0 commit comments

Comments
 (0)