BUG: PointGroup#update does not accept sort_type, part II

pull/1492/head
Rick Carlino 2019-10-01 15:26:12 -05:00
parent e52e7c8169
commit 0d67345d8d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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>;
}