Browse Source

Removed PDF test links from the uploader, and changed tooltip behaviour to match the rest of the app

pull/172/head
Michael Olund 5 years ago
parent
commit
bf26d9f6f4
1 changed files with 9 additions and 10 deletions
  1. +9
    -10
      vue/src/components/Uploader/Uploader.vue

+ 9
- 10
vue/src/components/Uploader/Uploader.vue View File

@ -8,7 +8,13 @@
<span v-if="party === 1"> - For You</span> <span v-if="party === 1"> - For You</span>
<span v-if="party === 2"> - For Your Spouse</span> <span v-if="party === 2"> - For Your Spouse</span>
</h5> </h5>
<tooltip :text="formDef.help" :target="'#Tooltip-' + uniqueId"></tooltip>
<tooltip
:text="formDef.help"
trigger="outside-click"
:target="'#Tooltip-' + uniqueId"
placement="right"
:auto-placement="true"
></tooltip>
<label :for="inputId" class="sr-only"> <label :for="inputId" class="sr-only">
{{ formDef.preText }} {{ formDef.name }} {{ formDef.preText }} {{ formDef.name }}
<span v-if="party === 1"> - For You</span> <span v-if="party === 1"> - For You</span>
@ -96,9 +102,6 @@
</template> </template>
</file-upload> </file-upload>
</div> </div>
<div class="pull-left">
<a v-if="files.length" :href="pdfURL" target="_blank">{{ pdfURL }}</a>
</div>
<div class="text-right" v-if="!tooBig"> <div class="text-right" v-if="!tooBig">
<em>(Maximum {{ maxMegabytes }} MB)</em> <em>(Maximum {{ maxMegabytes }} MB)</em>
</div> </div>
@ -185,9 +188,6 @@
tooBig() { tooBig() {
return this.totalSize > this.maxMegabytes * 1024 * 1024; return this.totalSize > this.maxMegabytes * 1024 * 1024;
}, },
pdfURL() {
return `${this.$parent.proxyRootPath}pdf-images/${this.docType}/${this.party}/`;
}
}, },
methods: { methods: {
inputFile(newFile, oldFile) { inputFile(newFile, oldFile) {
@ -268,8 +268,7 @@
}); });
}, },
}); });
}
else {
} else {
newFile.compressed = true; newFile.compressed = true;
} }
} }
@ -452,7 +451,7 @@
// if there was an error it's probably because the upload isn't finished yet // if there was an error it's probably because the upload isn't finished yet
// mark the metadata as dirty so it will save metadata again // mark the metadata as dirty so it will save metadata again
this.retries++; this.retries++;
this.isDirty = true;
this.isDirty = true;
}); });
} }
}) })


Loading…
Cancel
Save