Commit 8c990b06 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/Settings/SettingsCallsChat): bind selectedButton of...

fix(ui/views/App/Settings/SettingsCallsChat): bind selectedButton of encryption and lime to the right value
parent cda42e1a
......@@ -44,7 +44,14 @@ TabContainer {
Binding {
property: 'selectedButton'
target: encryption
value: SettingsModel.mediaEncryption
value: {
var toFound = SettingsModel.mediaEncryption
return Number(
Utils.findIndex(encryption.encryptions, function (value) {
return toFound === value[0]
})
)
}
}
}
}
......@@ -121,7 +128,14 @@ TabContainer {
Binding {
property: 'selectedButton'
target: lime
value: SettingsModel.limeState
value: {
var toFound = SettingsModel.limeState
return Number(
Utils.findIndex(lime.limeStates, function (value) {
return toFound === value[0]
})
)
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment