Commit aa92c9f6 authored by Esteban Choque's avatar Esteban Choque
Browse files

Se elimino el dialog cerrar del dialog Iniciar nuevo debate

parent 4b209339
...@@ -125,15 +125,6 @@ export default { ...@@ -125,15 +125,6 @@ export default {
this.pagina(1); this.pagina(1);
}, },
methods: { 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() { sendPublicacion() {
this.params = { this.params = {
id_topic: this.$route.params.id_topic, id_topic: this.$route.params.id_topic,
...@@ -227,7 +218,9 @@ export default { ...@@ -227,7 +218,9 @@ export default {
.then(response => { .then(response => {
this.forum = response.data[this.$route.params.id_forum]; 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_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(response.status); // ex.: 200
console.log('titulo '+this.page_tit);
}); });
}, },
validarNombre () { validarNombre () {
......
...@@ -53,8 +53,7 @@ ...@@ -53,8 +53,7 @@
<el-dialog <el-dialog
title="Iniciar Nuevo Debate" title="Iniciar Nuevo Debate"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%" width="80%">
:before-close="handleClose">
<table <table
style="width:100%"> style="width:100%">
<tr> <tr>
...@@ -164,17 +163,6 @@ export default { ...@@ -164,17 +163,6 @@ export default {
this.dialogVisible = true; this.dialogVisible = true;
this.getListaCategorias(); 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() { getListaCategorias() {
//axios.get('http://localhost/wordpress/index.php?rest_route=/tm/v1/'+this.$route.params.id_forum) //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) axios.get(this.$foro.url+'/tm/v1/'+this.$route.params.id_forum)
......
Supports Markdown
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