Bladeren bron

chore: add download config button for wireguard

Shishkevich D. 1 dag geleden
bovenliggende
commit
e272c160b1
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      web/html/modals/inbound_info_modal.html

+ 3 - 0
web/html/modals/inbound_info_modal.html

@@ -433,6 +433,9 @@
                   <a-tooltip title='{{ i18n "copy" }}'>
                     <a-button :style="{ minWidth: '24px' }" size="small" icon="snippets" @click="copy(infoModal.links[index])"></a-button>
                   </a-tooltip>
+                  <a-tooltip title='{{ i18n "download" }}'>
+                    <a-button :style="{ minWidth: '24px' }" size="small" icon="download" @click="FileManager.downloadTextFile(infoModal.links[index], `peer-${index + 1}.conf`)"></a-button>
+                  </a-tooltip>
                 </tr-info-title>
                 <div v-html="infoModal.links[index].replaceAll(`\n`,`<br />`)" :style="{ borderRadius: '1rem', padding: '0.5rem' }" class="client-table-odd-row">
                 </div>