diff --git a/src/account/DevicesPage.vue b/src/account/DevicesPage.vue index caee1d7..3994776 100644 --- a/src/account/DevicesPage.vue +++ b/src/account/DevicesPage.vue @@ -43,7 +43,7 @@
{{ errors.first('deviceQRcode') }}
- +
{{ errors.first('deviceVpnConf') }}
@@ -153,13 +153,21 @@ displayVpnConfig: {}, displayDeviceHelp: {}, config: config, - loadingImgSrc: loadingImgSrc + loadingImgSrc: loadingImgSrc, + util: util }; }, computed: { ...mapState('devices', ['deviceTypes', 'devices', 'device', 'qrCodeImageBase64', 'vpnConfBase64']), ...mapState('system', ['messages', 'appLinks', 'configs']), ...mapGetters('devices', ['loading']), + vpnConfFileName: function () { + if (this.configs && this.configs.networkUuid) { + return 'bubble-'+this.configs.networkUuid.split('-')[0]+'-vpn.conf'; + } else { + return 'vpn.conf'; + } + }, addDeviceReady: function () { return this.deviceName !== null && this.deviceName !== '' && this.deviceType !== null && this.deviceType !== ''; },