BUG: PointGroup#update does not accept sort_type, part II
parent
e52e7c8169
commit
0d67345d8d
|
@ -32,7 +32,7 @@ module PointGroups
|
|||
|
||||
def update_attributes
|
||||
@update_attributes ||= inputs
|
||||
.except(:device, :point_ids)
|
||||
.except(:device, :point_ids, :point_group)
|
||||
.merge(updated_at: Time.now)
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ interface Props {
|
|||
}
|
||||
|
||||
const optionsTable: Record<PointGroupSortType, string> = {
|
||||
"random": "Randomly",
|
||||
"random": "Random Order",
|
||||
"xy_ascending": "X/Y, Ascending",
|
||||
"xy_decending": "X/Y, Descending",
|
||||
"yx_ascending": "Y/X, Ascending",
|
||||
|
@ -73,7 +73,7 @@ export function PointGroupSortSelector(p: Props) {
|
|||
selectedItem={selected(p.value as PointGroupSortType)}
|
||||
onChange={onChange(p.onChange)} />
|
||||
<p>
|
||||
{t(SORT_DESC)}
|
||||
{(p.value == "random") ? t(SORT_DESC) : ""}
|
||||
</p>
|
||||
</div>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue