link added ind pdid
This commit is contained in:
parent
4fc5b4b3ca
commit
a2e3e72558
@ -237,6 +237,7 @@ export class SalesPDlistPage {
|
||||
}
|
||||
|
||||
editForm(value_obj){
|
||||
|
||||
// let product= localStorage.getItem('product_id_salesPD')
|
||||
// storing the sales_pd_id and product id in local storagey
|
||||
let primary_key= 'sales_pd_id'
|
||||
@ -251,7 +252,7 @@ export class SalesPDlistPage {
|
||||
}
|
||||
console.log(value_obj);
|
||||
localStorage.setItem('sales_pd_type',value_obj.sales_pd_type)
|
||||
this.navCtrl.push(SectionListPage,{product_id:value_obj.product_id,sales_pd_type:value_obj.sales_pd_type})
|
||||
this.navCtrl.push(SectionListPage,{product_id:value_obj.product_id,sales_pd_type:value_obj.sales_pd_type,link:value_obj.link})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@ -10,11 +10,16 @@
|
||||
<button ion-button menuToggle>
|
||||
<ion-icon name="menu"></ion-icon>
|
||||
</button>
|
||||
<ion-title>Section List</ion-title>
|
||||
|
||||
<ion-title>Section List </ion-title>
|
||||
|
||||
<ion-buttons end>
|
||||
<a href={{link}} target={{link}}><ion-icon style="color: white; font-size: 40px; padding-left: 100px;"
|
||||
name="link"></ion-icon></a>
|
||||
</ion-buttons>
|
||||
<ion-buttons end *ngIf="is_sync_btn">
|
||||
<button ion-button outline round (click)="syncPDWithSections()"><ion-icon name="sync"></ion-icon> Sync</button>
|
||||
</ion-buttons>
|
||||
|
||||
</ion-navbar>
|
||||
</ion-header>
|
||||
|
||||
|
||||
@ -31,15 +31,18 @@ export class SectionListPage {
|
||||
sales_pd_type: string;
|
||||
customer_link_with_text: string;
|
||||
config_expression: any;
|
||||
link: any;
|
||||
constructor(public navCtrl: NavController, public navParams: NavParams,private SalesPDService:SalesPdProvider,private toastProvider:ToastProvider,
|
||||
private offlineManager:OfflineManagerProvider,private constantProvider:ConstantsProvider,
|
||||
private socialSharing:SocialSharing) {
|
||||
|
||||
if(this.navParams.get('product_id')){
|
||||
this.product_id=this.navParams.get('product_id')
|
||||
this.link=this.navParams.get('link')
|
||||
}
|
||||
this.sales_pd_type = localStorage.getItem('sales_pd_type')
|
||||
this.getTemplate()
|
||||
//alert(this.link);
|
||||
}
|
||||
|
||||
ionViewDidLoad() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user