Skip to content

Commit 7a3c2c2

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 5d12436 + be3c8dd commit 7a3c2c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/views/partials/bootstrap-table.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,12 @@ function deleteUploadFormatter(value, row) {
996996
997997
// This is kinda gross, but for right now we're posting to the GUI delete routes
998998
// All of these URLS and storage directories need to be updated to be more consistent :(
999-
if (row.item.type == 'assetmodels') {
1000-
destination = 'models';
999+
if (row.item.type === 'assetmodels') {
1000+
destination = 'models';
1001+
} else if (row.item.type === 'assets') {
1002+
destination = 'hardware';
10011003
} else {
1002-
destination = row.item.type;
1004+
destination = row.item.type;
10031005
}
10041006
10051007
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.item.id + '/showfile/' + row.id + '/delete" '

0 commit comments

Comments
 (0)