chore: expose API key secret and require it in UI

This commit is contained in:
Muhsin
2026-04-01 15:01:54 +04:00
parent 020bf6af93
commit 6e0b10cb42
2 changed files with 2 additions and 1 deletions
@@ -34,7 +34,7 @@ export default {
return !!this.inbox.api_key_sid;
},
hasExistingCredentials() {
return this.hasApiKeySid;
return this.hasApiKeySid && !!this.inbox.has_api_key_secret;
},
needsCredentials() {
return (
@@ -135,6 +135,7 @@ end
if resource.twilio? && resource.channel.respond_to?(:voice_enabled?)
json.voice_enabled resource.channel.voice_enabled?
json.voice_configured resource.channel.try(:twiml_app_sid).present?
json.has_api_key_secret resource.channel.try(:api_key_secret).present?
if resource.channel.try(:twiml_app_sid).present?
json.voice_call_webhook_url resource.channel.try(:voice_call_webhook_url)
json.voice_status_webhook_url resource.channel.try(:voice_status_webhook_url)