1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Remove upload artefact on second attempt

This commit is contained in:
ksamuel 2020-08-15 10:18:44 +02:00
parent eb22cd90b2
commit 67433e4a17
2 changed files with 9 additions and 3 deletions

View File

@ -206,7 +206,7 @@ var app = new Vue({
},
copyBTCToClipboard: function () {
copyBTCAdressToClipboard: function () {
var promise = navigator.clipboard.writeText(this.currentPaste.btcTipAddress);
@ -743,6 +743,12 @@ window.zerobin = {
content.value = event.target.result
image.onload = function () {
app.messages = []
var previousImage = document.querySelector('.paste-wrapper');
if (previousImage) {
previousImage.remove();
}
var imgWrapper = document.createElement('div');
imgWrapper.classList.add('paste-wrapper');
imgWrapper.appendChild(image)

View File

@ -68,7 +68,7 @@
href="bitcoin:{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS }}">
{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS}}
</a>
<button v-if="support.clipboard" class="btn btn-secondary" @click.prevent="copyBTCToClipboard()">
<button v-if="support.clipboard" class="btn btn-secondary" @click.prevent="copyBTCAdressToClipboard()">
{% this.btcCopied ? "copied :)" : "copy" %}
</button>
</div>
@ -107,7 +107,7 @@
<div>
<div class="file-upload">
<button type="button" class="btn btn-danger" @click.prevent="handleCancelClone()">Cancel clone</button>
<button type="button" class="btn btn-info" @click.prevent="handleCancelClone()">Cancel clone</button>
</div>
</div>