From a049a7c61eb0d102cc20ad0e8b520826ea7b6642 Mon Sep 17 00:00:00 2001 From: Raul Soledispa Date: Thu, 29 Sep 2022 17:35:28 -0500 Subject: [PATCH] =?UTF-8?q?Guardar=20una=20copia=20del=20texto=20original?= =?UTF-8?q?=20para=20usarla=20cuando=20la=20funci=C3=B3n=20de=20copia=20se?= =?UTF-8?q?=20haya=20resuelto=20con=20=C3=A9xito?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nginxconfig/i18n/de/templates/app.js | 2 +- src/nginxconfig/i18n/en/templates/app.js | 2 +- src/nginxconfig/i18n/es/templates/app.js | 2 +- src/nginxconfig/i18n/fr/templates/app.js | 2 +- src/nginxconfig/i18n/pl/templates/app.js | 2 +- src/nginxconfig/i18n/pt-br/templates/app.js | 2 +- src/nginxconfig/i18n/ru/templates/app.js | 2 +- src/nginxconfig/i18n/zh-cn/templates/app.js | 2 +- src/nginxconfig/templates/setup.vue | 7 ++++--- 9 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/nginxconfig/i18n/de/templates/app.js b/src/nginxconfig/i18n/de/templates/app.js index d88b462..bdce81a 100644 --- a/src/nginxconfig/i18n/de/templates/app.js +++ b/src/nginxconfig/i18n/de/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index 1a1764b..66fbfc1 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/es/templates/app.js b/src/nginxconfig/i18n/es/templates/app.js index a3027df..d10755b 100644 --- a/src/nginxconfig/i18n/es/templates/app.js +++ b/src/nginxconfig/i18n/es/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/fr/templates/app.js b/src/nginxconfig/i18n/fr/templates/app.js index 7066bb3..3d51651 100644 --- a/src/nginxconfig/i18n/fr/templates/app.js +++ b/src/nginxconfig/i18n/fr/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/pl/templates/app.js b/src/nginxconfig/i18n/pl/templates/app.js index 947233a..137fe14 100644 --- a/src/nginxconfig/i18n/pl/templates/app.js +++ b/src/nginxconfig/i18n/pl/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/pt-br/templates/app.js b/src/nginxconfig/i18n/pt-br/templates/app.js index 8f5104a..0300223 100644 --- a/src/nginxconfig/i18n/pt-br/templates/app.js +++ b/src/nginxconfig/i18n/pt-br/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/ru/templates/app.js b/src/nginxconfig/i18n/ru/templates/app.js index 08a6def..119b77f 100644 --- a/src/nginxconfig/i18n/ru/templates/app.js +++ b/src/nginxconfig/i18n/ru/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/zh-cn/templates/app.js b/src/nginxconfig/i18n/zh-cn/templates/app.js index d39209a..14b37bc 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/app.js +++ b/src/nginxconfig/i18n/zh-cn/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue index 6dcf11b..88fa3f4 100644 --- a/src/nginxconfig/templates/setup.vue +++ b/src/nginxconfig/templates/setup.vue @@ -151,9 +151,9 @@ THE SOFTWARE. }, setupCopy(elm) { - const resetText = () => { + const resetText = (originalText) => { setTimeout(() => { - elm.textContent = this.$t('templates.setup.copyBase64'); + elm.textContent = originalText; }, 5000); }; @@ -162,9 +162,10 @@ THE SOFTWARE. }); clipboard.on('success', e => { + const originalTextCopy = elm.textContent; elm.textContent = this.$tm('templates.app.copied'); e.clearSelection(); - resetText(); + resetText(originalTextCopy); }); clipboard.on('error', () => {