Skip to content

Commit 5c2f095

Browse files
author
FalkWolsky
committed
Avatars Column Type - small fixes
1 parent fa05a3e commit 5c2f095

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/columnAvatarsComp.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { optionsControl } from "comps/controls/optionsControl";
1717
import { BoolControl } from "comps/controls/boolControl";
1818
import { dropdownControl } from "comps/controls/dropdownControl";
1919
import { JSONObject } from "util/jsonTypes";
20-
import { Dispatch } from 'redux';
21-
import { changeChildAction } from "lowcoder-core";
2220

2321
const MenuLinkWrapper = styled.div`
2422
> a {
@@ -108,6 +106,7 @@ export const ColumnAvatarsComp = (function () {
108106
],
109107
})
110108
};
109+
111110
return new ColumnTypeCompBuilder(
112111
childrenMap,
113112
(props) => {
@@ -161,13 +160,10 @@ export const ColumnAvatarsComp = (function () {
161160
label: trans("avatarGroup.autoColor")
162161
})}
163162
{children.alignment.propertyView({
164-
label: trans("avatarGroup.alignment"),
163+
label: trans("table.avatarGroupAlignment"),
165164
radioButton: true,
166165
})}
167-
{children.avatars.propertyView({
168-
newOptionLabel: trans("table.option"),
169-
title: trans("table.optionList"),
170-
})}
166+
{children.onEvent.propertyView()}
171167
</>
172168
))
173169
.build();

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,7 @@ export const en = {
18751875
"prefix": "Prefix",
18761876
"suffix": "Suffix",
18771877
"avatars": "Avatars",
1878+
"avatarGroupAlignment": "Avatars Alignment",
18781879
"text": "Text",
18791880
"number": "Number",
18801881
"link": "Link",

0 commit comments

Comments
 (0)