Commit aa92c9f6 authored by Esteban Choque's avatar Esteban Choque

Se elimino el dialog cerrar del dialog Iniciar nuevo debate

parent 4b209339
......@@ -125,15 +125,6 @@ export default {
this.pagina(1);
},
methods: {
getTopics() {
//axios.get('http://localhost/wordpress/index.php?rest_route=/topic_posts/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic)
axios.get(this.$foro.url+'/topic_posts/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic)
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_tit = this.forum.topics[this.$route.params.id_topic].name;
console.log(response.status); // ex.: 200
});
},
sendPublicacion() {
this.params = {
id_topic: this.$route.params.id_topic,
......@@ -227,7 +218,9 @@ export default {
.then(response => {
this.forum = response.data[this.$route.params.id_forum];
this.page_num_posts = parseInt(this.forum.topics[this.$route.params.id_topic].num_posts);
this.page_tit = this.forum.topics[this.$route.params.id_topic].name;
console.log(response.status); // ex.: 200
console.log('titulo '+this.page_tit);
});
},
validarNombre () {
......
......@@ -53,8 +53,7 @@
<el-dialog
title="Iniciar Nuevo Debate"
:visible.sync="dialogVisible"
width="80%"
:before-close="handleClose">
width="80%">
<table
style="width:100%">
<tr>
......@@ -164,17 +163,6 @@ export default {
this.dialogVisible = true;
this.getListaCategorias();
},
handleClose(done) {
this.$confirm('¿Estás seguro de descartar esta publicación?', 'Advertencia', {
confirmButtonText: 'Si',
cancelButtonText: 'No',
type: 'warning'
})
.then(_ => {
done();
})
.catch(_ => {});
},
getListaCategorias() {
//axios.get('http://localhost/wordpress/index.php?rest_route=/tm/v1/'+this.$route.params.id_forum)
axios.get(this.$foro.url+'/tm/v1/'+this.$route.params.id_forum)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment