suggest
This commit is contained in:
@@ -101,15 +101,27 @@
|
||||
<!-- </ion-textarea>-->
|
||||
<!-- {{modalSeleted.description}}-->
|
||||
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-button color="danger" (click)="cancel()">Cancel</ion-button>
|
||||
</ion-buttons>
|
||||
<!-- <ion-title>Buttons</ion-title>-->
|
||||
<ion-buttons slot="end">
|
||||
<ion-button color="secondary" (click)="sendSuggestedTask()">Send</ion-button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col style="text-align: left;">
|
||||
<ion-button size="small" shape="round" color="danger" (click)="cancel()">Cancel</ion-button>
|
||||
</ion-col>
|
||||
<ion-col style="text-align: right;">
|
||||
<ion-button size="small" shape="round" color="secondary" (click)="sendSuggestedTask()">Send</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
||||
|
||||
<!-- <ion-toolbar>-->
|
||||
<!-- <ion-buttons slot="start">-->
|
||||
<!-- -->
|
||||
<!-- </ion-buttons>-->
|
||||
<!--<!– <ion-title>Buttons</ion-title>–>-->
|
||||
<!-- <ion-buttons slot="end">-->
|
||||
<!-- -->
|
||||
<!-- </ion-buttons>-->
|
||||
<!-- </ion-toolbar>-->
|
||||
|
||||
|
||||
</ion-card-content>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {IonModal, NavController} from "@ionic/angular";
|
||||
import {IonModal, LoadingController, NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
@@ -19,7 +19,8 @@ export class SuggestPage implements OnInit {
|
||||
private navctr: NavController,
|
||||
private router: Router,
|
||||
private wrenchService: WrenchService,
|
||||
public sessionDataProviderService:SessionDataProviderService
|
||||
public sessionDataProviderService:SessionDataProviderService,
|
||||
private loadingCtrl: LoadingController
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
@@ -72,7 +73,15 @@ modalSeleted:any;
|
||||
this.modal.present();
|
||||
}
|
||||
|
||||
sendSuggestedTask(){
|
||||
async sendSuggestedTask(){
|
||||
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Sending...',
|
||||
duration: 2500,
|
||||
});
|
||||
|
||||
|
||||
loading.present();
|
||||
|
||||
this.cancel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user