WEB: Add copy button to action tab (#299)

This commit is contained in:
Spenser Black
2021-05-14 16:33:32 -04:00
committed by GitHub
parent 429b58aeb7
commit a284c6abf2
6 changed files with 28 additions and 22 deletions

View File

@@ -154,6 +154,9 @@
</div>
</div>
<div v-else-if="tab == 'action'">
<div>
<button class="copy-action" data-clipboard-target=".code">Copy Action Code</button>
</div>
Create a new workflow with the following content at <a :href="repo">{{ user }}/{{ user }}</a>
<div class="code">
<Prism language="yaml" :code="action"></Prism>
@@ -183,6 +186,7 @@
<script src="/.js/faker.min.js"></script>
<script src="/.js/vue.min.js"></script>
<script src="/.js/vue.prism.min.js"></script>
<script src="/.js/clipboard.min.js"></script>
<script src="/.js/app.placeholder.js?v=3.9"></script>
<script src="/.js/app.js?v=3.9"></script>
</body>