custom filters
This commit is contained in:
@@ -520,6 +520,7 @@ class PbSyncService {
|
||||
'name': r.getStringValue('name'),
|
||||
'display': r.getBoolValue('display', true),
|
||||
'sortOrder': r.getIntValue('sort_order', 0),
|
||||
'halfWidth': r.getBoolValue('half_width'),
|
||||
'labelIds': _jsonStringList(r.get<dynamic>('label_ids')),
|
||||
'flow': r.getStringValue('flow'),
|
||||
'amountRange': rangeRaw is Map
|
||||
@@ -1197,6 +1198,7 @@ class PbSyncService {
|
||||
'name': _clip(w.name.isEmpty ? 'Filter' : w.name, 200),
|
||||
'display': w.display,
|
||||
'sort_order': w.sortOrder,
|
||||
'half_width': w.halfWidth,
|
||||
'label_ids': w.labelIds,
|
||||
'flow': w.flow.name,
|
||||
'amount_range': {
|
||||
@@ -1297,6 +1299,7 @@ class PbSyncService {
|
||||
return remote.getStringValue('name') == w.name &&
|
||||
remote.getBoolValue('display', true) == w.display &&
|
||||
remote.getIntValue('sort_order', 0) == w.sortOrder &&
|
||||
remote.getBoolValue('half_width') == w.halfWidth &&
|
||||
_sameIdList(remoteIds, w.labelIds) &&
|
||||
remote.getStringValue('flow') == w.flow.name &&
|
||||
asDouble(rangeMap['exact']) == w.amountRange.exact &&
|
||||
|
||||
Reference in New Issue
Block a user