Skip to content

Commit 60fd353

Browse files
committed
Fixed API button UI/JS
1 parent 90e6060 commit 60fd353

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

internal/configuration/database/provider/redis/Redis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99
"time"
1010

11+
"github.com/forceu/gokapi/internal/environment"
1112
"github.com/forceu/gokapi/internal/helper"
1213
"github.com/forceu/gokapi/internal/models"
1314
redigo "github.com/gomodule/redigo/redis"

internal/webserver/web/static/js/admin_ui_api.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,18 @@ function addRowApi(apiKey, publicId) {
219219
granted: true,
220220
title: 'Delete Uploads'
221221
},
222-
{
223-
perm: 'PERM_MANAGE_FILE_REQUESTS',
224-
icon: 'bi-box-arrow-in-down',
225-
granted: false,
226-
title: 'Manage File Requests'
227-
},
228222
{
229223
perm: 'PERM_REPLACE',
230224
icon: 'bi-recycle',
231225
granted: false,
232226
title: 'Replace Uploads'
233227
},
228+
{
229+
perm: 'PERM_MANAGE_FILE_REQUESTS',
230+
icon: 'bi-box-arrow-in-down',
231+
granted: false,
232+
title: 'Manage File Requests'
233+
},
234234
{
235235
perm: 'PERM_MANAGE_USERS',
236236
icon: 'bi-people',

0 commit comments

Comments
 (0)