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:
parent
eb22cd90b2
commit
67433e4a17
@ -206,7 +206,7 @@ var app = new Vue({
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
copyBTCToClipboard: function () {
|
copyBTCAdressToClipboard: function () {
|
||||||
|
|
||||||
var promise = navigator.clipboard.writeText(this.currentPaste.btcTipAddress);
|
var promise = navigator.clipboard.writeText(this.currentPaste.btcTipAddress);
|
||||||
|
|
||||||
@ -743,6 +743,12 @@ window.zerobin = {
|
|||||||
content.value = event.target.result
|
content.value = event.target.result
|
||||||
|
|
||||||
image.onload = function () {
|
image.onload = function () {
|
||||||
|
|
||||||
|
app.messages = []
|
||||||
|
var previousImage = document.querySelector('.paste-wrapper');
|
||||||
|
if (previousImage) {
|
||||||
|
previousImage.remove();
|
||||||
|
}
|
||||||
var imgWrapper = document.createElement('div');
|
var imgWrapper = document.createElement('div');
|
||||||
imgWrapper.classList.add('paste-wrapper');
|
imgWrapper.classList.add('paste-wrapper');
|
||||||
imgWrapper.appendChild(image)
|
imgWrapper.appendChild(image)
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
href="bitcoin:{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS }}">
|
href="bitcoin:{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS }}">
|
||||||
{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS}}
|
{{ paste.btc_tip_address or settings.DEFAULT_BTC_TIP_ADDRESS}}
|
||||||
</a>
|
</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" %}
|
{% this.btcCopied ? "copied :)" : "copy" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="file-upload">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user