d
This commit is contained in:
@@ -93,7 +93,7 @@ extension MeetupId {
|
||||
ctrl.pipe(
|
||||
dbg: "join",
|
||||
sub: nil,
|
||||
Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Void) in v }.map { _ in }.eraseToAnyPublisher(),
|
||||
Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Bool) in v }.map { _ in }.eraseToAnyPublisher(),
|
||||
{ $0.join = true },
|
||||
{ $0.join = false }
|
||||
)
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
def pipeBusSource(name, entity, busKey, structure, fmtBusPipe, fmtBusPipeToggle):
|
||||
if "toggle" in entity.pipes[name]:
|
||||
return fmtBusPipeToggle \
|
||||
.replace("%BUS_KEY%", busKey) \
|
||||
.replace("%BUS_VALUE_TYPE%", "Void")
|
||||
|
||||
valueType = structure.model.fields[name][0]
|
||||
return fmtBusPipe \
|
||||
fmt = fmtBusPipe
|
||||
if "toggle" in entity.pipes[name]:
|
||||
fmt = fmtBusPipeToggle
|
||||
|
||||
return fmt \
|
||||
.replace("%BUS_KEY%", busKey) \
|
||||
.replace("%BUS_VALUE_TYPE%", valueType)
|
||||
|
||||
Reference in New Issue
Block a user