AlertController buttons not in the line


#1

How can I make the AlertController buttons to be in the same line?

43

const alert = this.alertCtrl.create({
         title: 'Warning',
         subTitle: 'Specific location',
         inputs: [
            {
               name: 'location',
               placeholder: 'Enter the name'
            }
         ],
         buttons: [
            {
               text: 'Cancel',
               role: 'cancel',
            },
            {
               text: 'OK',
               handler: data => {
                  this.insert(this.location);
               }
            }
         ]
      });
      alert.present();