Skip to content

Commit 86d784b

Browse files
committed
Fixed #15740 - use non-translated strings for icons
Signed-off-by: snipe <[email protected]>
1 parent 589f9cc commit 86d784b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

app/Presenters/ActionlogPresenter.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,59 +42,59 @@ public function icon()
4242
// User related icons
4343
if ($this->itemType() == 'user') {
4444

45-
if ($this->actionType()=='2fa reset') {
45+
if ($this->action_type == '2fa reset') {
4646
return 'fa-solid fa-mobile-screen';
4747
}
4848

49-
if ($this->actionType()=='create new') {
49+
if ($this->action_type == 'create new') {
5050
return 'fa-solid fa-user-plus';
5151
}
5252

53-
if ($this->actionType()=='merged') {
53+
if ($this->action_type == 'merged') {
5454
return 'fa-solid fa-people-arrows';
5555
}
5656

57-
if ($this->actionType()=='delete') {
57+
if ($this->action_type == 'delete') {
5858
return 'fa-solid fa-user-minus';
5959
}
6060

61-
if ($this->actionType()=='delete') {
61+
if ($this->action_type == 'delete') {
6262
return 'fa-solid fa-user-minus';
6363
}
6464

65-
if ($this->actionType()=='update') {
65+
if ($this->action_type == 'update') {
6666
return 'fa-solid fa-user-pen';
6767
}
6868

6969
return 'fa-solid fa-user';
7070
}
7171

7272
// Everything else
73-
if ($this->actionType()=='create new') {
73+
if ($this->action_type == 'create new') {
7474
return 'fa-solid fa-plus';
7575
}
7676

77-
if ($this->actionType()=='delete') {
77+
if ($this->action_type == 'delete') {
7878
return 'fa-solid fa-trash';
7979
}
8080

81-
if ($this->actionType()=='update') {
81+
if ($this->action_type == 'update') {
8282
return 'fa-solid fa-pen';
8383
}
8484

85-
if ($this->actionType()=='restore') {
85+
if ($this->action_type == 'restore') {
8686
return 'fa-solid fa-trash-arrow-up';
8787
}
8888

89-
if ($this->actionType()=='upload') {
89+
if ($this->action_type == 'upload') {
9090
return 'fas fa-paperclip';
9191
}
9292

93-
if ($this->actionType()=='checkout') {
93+
if ($this->action_type == 'checkout') {
9494
return 'fa-solid fa-rotate-left';
9595
}
9696

97-
if ($this->actionType()=='checkin from') {
97+
if ($this->action_type == 'checkin from') {
9898
return 'fa-solid fa-rotate-right';
9999
}
100100

0 commit comments

Comments
 (0)