fix conflictos
This commit is contained in:
parent
fdb36ce2d7
commit
1d7499266a
|
@ -1,7 +1,5 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { EstadoEncuesta } from 'app/entities/enumerations/estado-encuesta.model';
|
|
||||||
|
|
||||||
import { IEncuesta } from '../encuesta.model';
|
import { IEncuesta } from '../encuesta.model';
|
||||||
import { EncuestaService } from '../service/encuesta.service';
|
import { EncuestaService } from '../service/encuesta.service';
|
||||||
import { EstadoEncuesta } from 'app/entities/enumerations/estado-encuesta.model';
|
import { EstadoEncuesta } from 'app/entities/enumerations/estado-encuesta.model';
|
||||||
|
|
|
@ -22,6 +22,7 @@ import { EstadoEncuesta } from 'app/entities/enumerations/estado-encuesta.model'
|
||||||
import { AccountService } from 'app/core/auth/account.service';
|
import { AccountService } from 'app/core/auth/account.service';
|
||||||
import { Account } from 'app/core/auth/account.model';
|
import { Account } from 'app/core/auth/account.model';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
import { EncuestaPublishDialogComponent } from '../encuesta-publish-dialog/encuesta-publish-dialog.component';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
faShareAlt,
|
faShareAlt,
|
||||||
|
@ -38,7 +39,6 @@ import {
|
||||||
} from '@fortawesome/free-solid-svg-icons';
|
} from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
import * as $ from 'jquery';
|
import * as $ from 'jquery';
|
||||||
import { EncuestaPublishDialogComponent } from '../encuesta-publish-dialog/encuesta-publish-dialog.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'jhi-encuesta',
|
selector: 'jhi-encuesta',
|
||||||
|
@ -71,7 +71,7 @@ export class EncuestaComponent implements OnInit, AfterViewInit {
|
||||||
categoriasSharedCollection: ICategoria[] = [];
|
categoriasSharedCollection: ICategoria[] = [];
|
||||||
usuarioExtrasSharedCollection: IUsuarioExtra[] = [];
|
usuarioExtrasSharedCollection: IUsuarioExtra[] = [];
|
||||||
|
|
||||||
selectedSurvey: number | null = null;
|
selectedIdSurvey: number | null = null;
|
||||||
encuestaencontrada: IEncuesta | null = null;
|
encuestaencontrada: IEncuesta | null = null;
|
||||||
|
|
||||||
public searchString: string;
|
public searchString: string;
|
||||||
|
@ -208,8 +208,8 @@ export class EncuestaComponent implements OnInit, AfterViewInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteSurvey(): void {
|
deleteSurvey(): void {
|
||||||
if (this.selectedSurvey != null) {
|
if (this.selectedIdSurvey != null) {
|
||||||
this.getEncuesta(this.selectedSurvey)
|
this.getEncuesta(this.selectedIdSurvey)
|
||||||
.pipe(
|
.pipe(
|
||||||
finalize(() => {
|
finalize(() => {
|
||||||
const modalRef = this.modalService.open(EncuestaDeleteDialogComponent, { size: 'lg', backdrop: 'static' });
|
const modalRef = this.modalService.open(EncuestaDeleteDialogComponent, { size: 'lg', backdrop: 'static' });
|
||||||
|
@ -436,7 +436,7 @@ export class EncuestaComponent implements OnInit, AfterViewInit {
|
||||||
event.target.classList.add('active');
|
event.target.classList.add('active');
|
||||||
document.getElementById('contextmenu-create--separator')!.style.display = 'none';
|
document.getElementById('contextmenu-create--separator')!.style.display = 'none';
|
||||||
|
|
||||||
this.selectedSurvey = Number(event.target.dataset.id);
|
this.selectedIdSurvey = Number(event.target.dataset.id);
|
||||||
//this.selectedSurvey = event.target.dataset.encuesta;
|
//this.selectedSurvey = event.target.dataset.encuesta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue