perbaikan label
This commit is contained in:
		
							parent
							
								
									ecef25f30d
								
							
						
					
					
						commit
						5c5ca65f53
					
				| @ -177,7 +177,7 @@ export class DeviceControlComponent { | ||||
|   schedulerItem(row) { | ||||
|     console.log(row); | ||||
|      | ||||
|     this.router.navigate(["/device/scheduler", row.id]); | ||||
|     this.router.navigate(["/device/scheduler", row.id, row.name]); | ||||
|   } | ||||
| 
 | ||||
|   // schedulerItem(item) {
 | ||||
|  | ||||
| @ -69,7 +69,7 @@ import { SchedulerListComponent } from './scheduler-list/scheduler-list.componen | ||||
|         data: { mode: 'view' }  | ||||
|       }, | ||||
|       { | ||||
|         path: 'scheduler/:id', | ||||
|         path: 'scheduler/:id/:name', | ||||
|         component: SchedulerListComponent, | ||||
|         data: { mode: 'scheduler' }  | ||||
|       } | ||||
|  | ||||
| @ -15,7 +15,7 @@ | ||||
|                 > | ||||
|                   <h4 class="form-section m-0" style="color: #242222"> | ||||
|                     <i class="feather ft-calendar" style="color: #242222"></i> | ||||
|                     Smart Plug Single Connector | ||||
|                     {{deviceName}} | ||||
|                   </h4> | ||||
| 
 | ||||
|                   <button | ||||
|  | ||||
| @ -13,6 +13,7 @@ export class SchedulerListComponent { | ||||
|   public breadcrumb: any; | ||||
|   listScheduler: any; | ||||
|   deviceId: any; | ||||
|   deviceName: any; | ||||
|   schedules = [ | ||||
|     { | ||||
|       id: 1, | ||||
| @ -35,6 +36,8 @@ export class SchedulerListComponent { | ||||
|   ngOnInit(): void { | ||||
|     this.route.params.subscribe((params) => { | ||||
|       const id = params["id"]; | ||||
|       const name = params["name"]; | ||||
|       this.deviceName = name; | ||||
|       this.deviceId = id; | ||||
|       if (id) { | ||||
|         this.dataListScheduler(id); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user