arreglos mensajes de alerta en crear categorias
This commit is contained in:
		
							parent
							
								
									17445e28b4
								
							
						
					
					
						commit
						35d3f87069
					
				| 
						 | 
				
			
			@ -22,7 +22,7 @@ export interface Alert {
 | 
			
		|||
  providedIn: 'root',
 | 
			
		||||
})
 | 
			
		||||
export class AlertService {
 | 
			
		||||
  timeout = 5000;
 | 
			
		||||
  timeout = 3000;
 | 
			
		||||
  toast = false;
 | 
			
		||||
  position = 'top right';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -65,7 +65,7 @@ export class AlertService {
 | 
			
		|||
    alert.timeout = alert.timeout ?? this.timeout;
 | 
			
		||||
    alert.toast = alert.toast ?? this.toast;
 | 
			
		||||
    alert.position = alert.position ?? this.position;
 | 
			
		||||
    alert.close = (alertsArray: Alert[]) => this.closeAlert(alert.id!, alertsArray);
 | 
			
		||||
    //alert.close = (alertsArray: Alert[]) => this.closeAlert(alert.id!, alertsArray);
 | 
			
		||||
 | 
			
		||||
    (extAlerts ?? this.alerts).push(alert);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,6 +19,10 @@
 | 
			
		|||
 | 
			
		||||
  </div>-->
 | 
			
		||||
 | 
			
		||||
  <div>
 | 
			
		||||
    <jhi-alert class="alert-success"></jhi-alert>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
  <div class="alert alert-success" *ngIf="success" jhiTranslate="dataSurveyApp.categoria.delete.success"></div>
 | 
			
		||||
 | 
			
		||||
  <div class="alert alert-warning" id="no-result" *ngIf="categorias?.length === 0">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,8 +8,8 @@
 | 
			
		|||
        "createOrEditLabel": "Datos de categoría",
 | 
			
		||||
        "notFound": "Ninguna categoría encontrada"
 | 
			
		||||
      },
 | 
			
		||||
      "created": "Una nueva categoría ha sido creada con el identificador {{ param }}",
 | 
			
		||||
      "updated": "Los datos de la categoría {{ nombre }} han sido actualizados",
 | 
			
		||||
      "created": "Su categoría fue creada de manera exitosa",
 | 
			
		||||
      "updated": "Los datos de la categoría han sido guardados de manera exitosa",
 | 
			
		||||
      "deleted": "La categoría  {{ nombre }} ha sido deshabilitada",
 | 
			
		||||
      "delete": {
 | 
			
		||||
        "question": "¿Seguro que quiere cambiar el estado de \"{{ nombre }}\"?",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue