Skip to content

Commit

Permalink
url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mstgnz committed Jul 4, 2024
1 parent e1be2c4 commit 99e7bae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions handler/web/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (h *NotificationHandler) PaginationHandler(w http.ResponseWriter, r *http.R
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-info" data-notifications='%s' hx-get="/notifications/%d/edit"
<button class="btn btn-info" data-notifications='%s' hx-get="/notifications/%d"
hx-trigger="edit"
onClick="let editing = document.querySelector('.editing')
if(editing) {
Expand Down Expand Up @@ -359,7 +359,7 @@ func (h *NotificationHandler) EmailPaginationHandler(w http.ResponseWriter, r *h
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-info" data-email='%s' hx-get="/notifications/email/%d/edit"
<button class="btn btn-info" data-email='%s' hx-get="/notifications/email/%d"
hx-trigger="edit"
onClick="let editing = document.querySelector('.editing')
if(editing) {
Expand Down Expand Up @@ -548,7 +548,7 @@ func (h *NotificationHandler) MessagePaginationHandler(w http.ResponseWriter, r
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-info" data-message='%s' hx-get="/notifications/message/%d/edit"
<button class="btn btn-info" data-message='%s' hx-get="/notifications/message/%d"
hx-trigger="edit"
onClick="let editing = document.querySelector('.editing')
if(editing) {
Expand Down
4 changes: 2 additions & 2 deletions handler/web/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (h *RequestHandler) PaginationHandler(w http.ResponseWriter, r *http.Reques
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-info" data-request='%s' hx-get="/requests/%d/edit"
<button class="btn btn-info" data-request='%s' hx-get="/requests/%d"
hx-trigger="edit"
onClick="let editing = document.querySelector('.editing')
if(editing) {
Expand Down Expand Up @@ -336,7 +336,7 @@ func (h *RequestHandler) HeaderPaginationHandler(w http.ResponseWriter, r *http.
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-info" data-request='%s' hx-get="/requests/headers/%d/edit"
<button class="btn btn-info" data-request='%s' hx-get="/requests/headers/%d"
hx-trigger="edit"
onClick="let editing = document.querySelector('.editing')
if(editing) {
Expand Down
2 changes: 1 addition & 1 deletion handler/web/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (h *SettingHandler) AppLogHandler(w http.ResponseWriter, r *http.Request) e
<td>%s</td>
<td>
<div class="hstack gap-1">
<button class="btn btn-danger" hx-delete="/settings/app-logs/%d/delete" hx-trigger='confirmed' onClick="Swal.fire({
<button class="btn btn-danger" hx-delete="/settings/app-logs/%d" hx-trigger='confirmed' onClick="Swal.fire({
title: 'Do you approve the deletion?',
icon: 'warning',
showCancelButton: true,
Expand Down

0 comments on commit 99e7bae

Please sign in to comment.