Skip to content

Commit e272c16

Browse files
authored
chore: add download config button for wireguard
1 parent ba50c99 commit e272c16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/html/modals/inbound_info_modal.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@
433433
<a-tooltip title='{{ i18n "copy" }}'>
434434
<a-button :style="{ minWidth: '24px' }" size="small" icon="snippets" @click="copy(infoModal.links[index])"></a-button>
435435
</a-tooltip>
436+
<a-tooltip title='{{ i18n "download" }}'>
437+
<a-button :style="{ minWidth: '24px' }" size="small" icon="download" @click="FileManager.downloadTextFile(infoModal.links[index], `peer-${index + 1}.conf`)"></a-button>
438+
</a-tooltip>
436439
</tr-info-title>
437440
<div v-html="infoModal.links[index].replaceAll(`\n`,`<br />`)" :style="{ borderRadius: '1rem', padding: '0.5rem' }" class="client-table-odd-row">
438441
</div>

0 commit comments

Comments
 (0)