Skip to content
Snippets Groups Projects
Commit d45995ed authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Arreglo single file URL

parent 0615b3e9
No related branches found
No related tags found
No related merge requests found
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
</li> </li>
</ul> </ul>
<div class="copiar"> <div class="copiar">
<label class="font_small" v-html="lb_16" :for="'id_'+index"></label>
<div class="input-group"> <div class="input-group">
<label class="sr-only" v-html="lb_16"></label>
<input class="form-control input-sm" type="textfield" readonly :value="getHashURL(index)" :id="'id_'+index" > <input class="form-control input-sm" type="textfield" readonly :value="getHashURL(index)" :id="'id_'+index" >
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default btn-sm" v-on:click="copiarURL(index)"><span class="glyphicon glyphicon-copy text-success" aria-hidden="true"></span> <span v-html="lb_15"></span></button> <button class="btn btn-default btn-sm" v-on:click="copiarURL(index)"><span class="glyphicon glyphicon-copy text-success" aria-hidden="true"></span> <span v-html="lb_15"></span></button>
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
</li> </li>
</ul> </ul>
<div class="copiar"> <div class="copiar">
<label class="font_small" v-html="lb_16" for="id_single"></label>
<div class="input-group"> <div class="input-group">
<label class="sr-only" v-html="lb_16"></label>
<input class="form-control input-sm" type="textfield" readonly :value="getHashURL(null)" id="id_single"> <input class="form-control input-sm" type="textfield" readonly :value="getHashURL(null)" id="id_single">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default btn-sm" v-on:click="copiarURL(null)"><span class="glyphicon glyphicon-copy text-success" aria-hidden="true"></span> <span v-html="lb_15"></span></button> <button class="btn btn-default btn-sm" v-on:click="copiarURL(null)"><span class="glyphicon glyphicon-copy text-success" aria-hidden="true"></span> <span v-html="lb_15"></span></button>
...@@ -148,6 +148,7 @@ ...@@ -148,6 +148,7 @@
}, },
getHashURL(index){ getHashURL(index){
var url; var url;
//console.log(index);
if (index == null){ if (index == null){
url = window.location.href; url = window.location.href;
}else{ }else{
......
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
}, },
verify() { verify() {
var self = this; var self = this;
self.verifyCounter = 0;
for (let i = 0; i < self.uploadedFiles.length; i++) { for (let i = 0; i < self.uploadedFiles.length; i++) {
var h = self.allHashes[i]; var h = self.allHashes[i];
...@@ -147,11 +148,11 @@ export default { ...@@ -147,11 +148,11 @@ export default {
//console.log(res.data) //console.log(res.data)
if (res.data.stamped) { if (res.data.stamped) {
//self.$emit('verify', res.data.stamps) //self.$emit('verify', res.data.stamps)
if(self.uploadedFiles.length <= 1) // if(self.uploadedFiles.length <= 1)
{ // {
this.$router.push('/hash/'+h) // this.$router.push('/hash/'+h)
this.$route.params.pathMatch // this.$route.params.pathMatch
} // }
self.uploadedFiles[i].verified = true; self.uploadedFiles[i].verified = true;
self.uploadedFiles[i].stamps = res.data.stamps; self.uploadedFiles[i].stamps = res.data.stamps;
self.checkVerify() self.checkVerify()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment