mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Improve modal
This commit is contained in:
@@ -129,13 +129,6 @@ export class PedidosPage implements OnInit {
|
|||||||
async viewPedidoDetail(serialNumber:any) {
|
async viewPedidoDetail(serialNumber:any) {
|
||||||
console.log(this.profile);
|
console.log(this.profile);
|
||||||
|
|
||||||
let classs;
|
|
||||||
if( window.innerWidth <= 800){
|
|
||||||
classs = 'modal'
|
|
||||||
} else {
|
|
||||||
classs = 'modal modal-desktop'
|
|
||||||
}
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: PedidoPage,
|
component: PedidoPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
@@ -143,7 +136,7 @@ export class PedidosPage implements OnInit {
|
|||||||
serialNumber: serialNumber,
|
serialNumber: serialNumber,
|
||||||
profile: this.profile,
|
profile: this.profile,
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'modal modal-desktop',
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res)=>{
|
modal.onDidDismiss().then((res)=>{
|
||||||
|
|||||||
@@ -151,12 +151,7 @@ export class PendentesPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async openPedido(serialNumber:string){
|
async openPedido(serialNumber:string){
|
||||||
let classs;
|
|
||||||
if( window.innerWidth <= 800){
|
|
||||||
classs = 'modal'
|
|
||||||
} else {
|
|
||||||
classs = 'modal modal-desktop'
|
|
||||||
}
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: PedidoPage,
|
component: PedidoPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
@@ -164,7 +159,7 @@ export class PendentesPage implements OnInit {
|
|||||||
serialNumber: serialNumber,
|
serialNumber: serialNumber,
|
||||||
profile: this.profile,
|
profile: this.profile,
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'modal modal-desktop',
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res)=>{
|
modal.onDidDismiss().then((res)=>{
|
||||||
|
|||||||
@@ -130,13 +130,6 @@ export class PedidosPage implements OnInit {
|
|||||||
async viewPedidoDetail(serialNumber:any) {
|
async viewPedidoDetail(serialNumber:any) {
|
||||||
console.log(this.profile);
|
console.log(this.profile);
|
||||||
|
|
||||||
let classs;
|
|
||||||
if( window.innerWidth <= 800){
|
|
||||||
classs = 'modal'
|
|
||||||
} else {
|
|
||||||
classs = 'modal modal-desktop'
|
|
||||||
}
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: PedidoPage,
|
component: PedidoPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
@@ -144,7 +137,7 @@ export class PedidosPage implements OnInit {
|
|||||||
serialNumber: serialNumber,
|
serialNumber: serialNumber,
|
||||||
profile: this.profile,
|
profile: this.profile,
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'modal modal-desktop',
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res)=>{
|
modal.onDidDismiss().then((res)=>{
|
||||||
|
|||||||
@@ -151,12 +151,7 @@ export class PendentesPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async openPedido(serialNumber:string){
|
async openPedido(serialNumber:string){
|
||||||
let classs;
|
|
||||||
if( window.innerWidth <= 800){
|
|
||||||
classs = 'modal'
|
|
||||||
} else {
|
|
||||||
classs = 'modal modal-desktop'
|
|
||||||
}
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: PedidoPage,
|
component: PedidoPage,
|
||||||
componentProps:{
|
componentProps:{
|
||||||
@@ -164,7 +159,7 @@ export class PendentesPage implements OnInit {
|
|||||||
serialNumber: serialNumber,
|
serialNumber: serialNumber,
|
||||||
profile: this.profile,
|
profile: this.profile,
|
||||||
},
|
},
|
||||||
cssClass: classs,
|
cssClass: 'modal modal-desktop',
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res)=>{
|
modal.onDidDismiss().then((res)=>{
|
||||||
|
|||||||
+8
-8
@@ -540,10 +540,10 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.calendar-component{
|
.calendar-component {
|
||||||
td{
|
td {
|
||||||
padding: 8px !important;
|
padding: 7.5px !important;
|
||||||
div{
|
div {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
-ms-border-radius: 3px !important;
|
-ms-border-radius: 3px !important;
|
||||||
-o-border-radius: 3px !important;
|
-o-border-radius: 3px !important;
|
||||||
}
|
}
|
||||||
.title-icon{
|
.title-icon {
|
||||||
font-size: 40px !important;
|
font-size: 40px !important;
|
||||||
color: #42b9fe;
|
color: #42b9fe;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@@ -578,15 +578,15 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
ion-icon {
|
ion-icon {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.btn-no-color{
|
.btn-no-color {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
ion-icon{
|
ion-icon {
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btn-no-color:focus{
|
.btn-no-color:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user