Commit d45995ed authored by Otto Zaiser's avatar Otto Zaiser

Arreglo single file URL

parent 0615b3e9
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -18,8 +18,8 @@
</li>
</ul>
<div class="copiar">
<label class="font_small" v-html="lb_16" :for="'id_'+index"></label>
<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" >
<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>
......@@ -41,8 +41,8 @@
</li>
</ul>
<div class="copiar">
<label class="font_small" v-html="lb_16" for="id_single"></label>
<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">
<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>
......@@ -148,6 +148,7 @@
},
getHashURL(index){
var url;
//console.log(index);
if (index == null){
url = window.location.href;
}else{
......
......@@ -138,6 +138,7 @@ export default {
},
verify() {
var self = this;
self.verifyCounter = 0;
for (let i = 0; i < self.uploadedFiles.length; i++) {
var h = self.allHashes[i];
......@@ -147,11 +148,11 @@ export default {
//console.log(res.data)
if (res.data.stamped) {
//self.$emit('verify', res.data.stamps)
if(self.uploadedFiles.length <= 1)
{
this.$router.push('/hash/'+h)
this.$route.params.pathMatch
}
// if(self.uploadedFiles.length <= 1)
// {
// this.$router.push('/hash/'+h)
// this.$route.params.pathMatch
// }
self.uploadedFiles[i].verified = true;
self.uploadedFiles[i].stamps = res.data.stamps;
self.checkVerify()
......
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