From 7a71db9de4913800919308163afb7dc97c629754 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 8 Jan 2023 15:22:36 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/ExternalLibs/ExternalLibs.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/client/components/ExternalLibs/ExternalLibs.vue b/client/components/ExternalLibs/ExternalLibs.vue index 56881541..18776c71 100644 --- a/client/components/ExternalLibs/ExternalLibs.vue +++ b/client/components/ExternalLibs/ExternalLibs.vue @@ -494,13 +494,19 @@ class ExternalLibs { } get header() { - let result = (this.ready ? 'Сетевая библиотека' : 'Загрузка...'); + let result = [this.ready ? 'Сетевая библиотека' : 'Загрузка...']; if (this.ready && this.selectedLink) { - let title = `${(this.libs.comment ? this.libs.comment + ' ': '') + lu.removeProtocol(this.libs.startLink)}`; - if (this.inpxReady && this.inpxTitle) - title = `${this.inpxTitle} ${lu.removeProtocol(this.inpxUrl)}`; - result += ` | ${title}`; + + if (this.inpxReady && this.inpxTitle) { + result.push(this.inpxTitle); + result.push(lu.removeProtocol(this.inpxUrl)); + } else { + result.push(this.libs.comment); + result.push(lu.removeProtocol(this.libs.startLink)); + } } + + result = result.filter(s => s).join(' | '); this.$root.setAppTitle(result); return result; }