show qrcode for all file
This commit is contained in:
@@ -100,9 +100,8 @@
|
||||
<span class="hidden-xs">Download</span>
|
||||
<span class="glyphicon glyphicon-download-alt"></span>
|
||||
</a>
|
||||
<a class="btn btn-default btn-xs hidden-xs" v-if="shouldHaveQrcode(f.name)
|
||||
" v-on:click="genQrcode(f.name)" href="javascript:void(0)">
|
||||
QRCode
|
||||
<a class="btn btn-default btn-xs hidden-xs" v-on:click="genQrcode(f.name)" href="javascript:void(0)">
|
||||
<span v-if="shouldHaveQrcode(f.name)">QRCode</span>
|
||||
<span class="glyphicon glyphicon-qrcode"></span>
|
||||
</a>
|
||||
<a class="btn btn-default btn-xs visible-xs" v-if="shouldHaveQrcode(f.name)" href="{{genInstallURL(f.name)}}">
|
||||
|
||||
@@ -107,7 +107,7 @@ var vm = new Vue({
|
||||
$("#qrcode-modal").modal("show");
|
||||
},
|
||||
shouldHaveQrcode: function(name) {
|
||||
return ['apk', 'ipa', 'htm', 'html'].indexOf(getExtention(name)) !== -1;
|
||||
return ['apk', 'ipa'].indexOf(getExtention(name)) !== -1;
|
||||
},
|
||||
genFileClass: function(f) {
|
||||
if (f.type == "dir") {
|
||||
|
||||
Reference in New Issue
Block a user