Skip to content

Commit

Permalink
update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 4, 2016
1 parent 8a19544 commit 22c048e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 6 additions & 11 deletions res/index.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@
<thead>
<tr>
<td colspan=4>
<!-- <button class="btn btn-xs btn-default" v-on:click='toggleHidden()'>
Back <i class="fa" v-bind:class='showHidden ? "fa-eye" : "fa-eye-slash"'></i>
</button> -->
<button class="btn btn-xs btn-default" v-on:click='toggleHidden()'>
Show hidden <i class="fa" v-bind:class='showHidden ? "fa-eye" : "fa-eye-slash"'></i>
Hidden <i class="fa" v-bind:class='showHidden ? "fa-eye" : "fa-eye-slash"'></i>
</button>
<button class="btn btn-xs btn-default" v-if="auth.upload" data-toggle="modal" data-target="#upload-modal">
Upload file <i class="fa fa-upload"></i>
Upload <i class="fa fa-upload"></i>
</button>
</td>
</tr>
Expand Down Expand Up @@ -113,19 +116,11 @@
<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)}}">
Install
Install <i class="fa fa-cube"></i>
</a>
<a class="btn btn-default btn-xs" v-if="auth.delete" v-on:click="deletePathConfirm(f, $event)" href="javascript:void(0)">
<span style="color:#CC3300" class="glyphicon glyphicon-trash"></span>
</a>
<template v-if="f.showConfirm">
<button class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-ok"></span>
</button>
<button class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-remove"></span>
</button>
</template>
</template>
</td>
</tr>
Expand Down
4 changes: 0 additions & 4 deletions res/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ var vm = new Vue({
deletePathConfirm: function(f, e) {
// confirm
e.preventDefault();
f.showConfirm = true;
f.name = "JJ"
console.log(f)
return;
$.ajax({
url: pathJoin([location.pathname, f.name]),
method: 'DELETE',
Expand Down

0 comments on commit 22c048e

Please sign in to comment.