1
0
Fork 0

Enable cmdable

pull/2/head
Ambrose Chua 2018-03-12 00:35:50 +09:00
parent fe78962db0
commit d878234f77
2 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,7 @@
</main>
</div>
{{> toolbar shellable=shellable}}
{{> toolbar shellable=shellable cmdable=cmdable}}
{{> dialogue-upload}}
{{> dialogue-mkdir}}

View File

@ -8,11 +8,13 @@
<span class="octicon octicon-file-directory"></span>
New folder
</a>
{{#if shellable}}
{{!-- <a class="btn btn-warning" href="@cmd" data-toggle="modal" data-target="#cmd">
{{#if cmdable}}
<a class="btn btn-warning" href="@cmd" data-toggle="modal" data-target="#cmd">
<span class="octicon octicon-terminal"></span>
Run command
</a> --}}
</a>
{{/if}}
{{#if shellable}}
<a class="btn btn-warning" href="@shell">
<span class="octicon octicon-terminal"></span>
Open shell