Skip to content

Commit

Permalink
dvh instead of vh for threadlist size. sendbox times out w/o reloadin…
Browse files Browse the repository at this point in the history
…g the page. admin handles numbers instead of trusting.
  • Loading branch information
Ian committed Mar 19, 2024
1 parent e528d14 commit 981a2e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 10 additions & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,16 @@ function fixbutton(array $params, $label="update") {
$problems = array();

try {
$inboundRouting = AccelerateNetworks::GetInboundSMSRouting($sms_number);
if($sms_number[0]=='+'){
$sms_number= substr($sms_number,1);
}
if(strlen($sms_number)!=11){
$problems[] = "Desired number has incorrect number of digits. Expected 11 digits but ". $sms_number. " isn't 11 digits";
}
else{
$inboundRouting = AccelerateNetworks::GetInboundSMSRouting($sms_number);

}

if($inboundRouting->callbackUrl != $desiredWebhookURL) {
$problems[] = "webhook URL is wrong: <code>".$inboundRouting->callbackUrl."</code> should be <code>".$desiredWebhookURL."</code>";
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/SendBox/SendBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default {
//console.log('emitting message', message);
emitter.emit('outbound-message', message);
setTimeout(() =>
location.reload(), 500
console.log("duplicate send prevention timeout"), 500
)
this.enteredText = "";
}
Expand Down
6 changes: 2 additions & 4 deletions frontend/components/ThreadList/ThreadList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default {
/*border-spacing: 1em; */
direction: rtl;
overflow-y: auto;
height: 70vh;
height: 69dvh;
width: 100%;
table-layout: fixed;
padding-left: 3px;
Expand All @@ -247,8 +247,6 @@ export default {
position:relative;
float: center;
margin-top: 0.5rem;
right:-8rem;
bottom:2rem;
}
.dot-center{
Expand Down Expand Up @@ -291,7 +289,7 @@ export default {
z-index:7;
}
.table {
height: 80vh;
height: 79dvh;
}
.hide-if-small{
display:none;
Expand Down

0 comments on commit 981a2e8

Please sign in to comment.