fix(ui/views/App/Settings/SettingsCallsChat): bind selectedButton of encryption and lime to the right value

This commit is contained in:
Ronan Abhamon 2017-03-07 15:35:25 +01:00
parent cda42e1a95
commit 8c990b060e

View file

@ -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]
})
)
}
}
}
}