Мелкий рефакторинг
This commit is contained in:
@@ -53,11 +53,10 @@ class DonateHelpPage extends Vue {
|
|||||||
|
|
||||||
async copyAddress(address, prefix) {
|
async copyAddress(address, prefix) {
|
||||||
const result = await copyTextToClipboard(address);
|
const result = await copyTextToClipboard(address);
|
||||||
const msg = (result ? `${prefix}-адрес ${address} успешно скопирован в буфер обмена` : 'Копирование не удалось');
|
|
||||||
if (result)
|
if (result)
|
||||||
this.$notify.success({message: msg});
|
this.$notify.success({message: `${prefix}-адрес ${address} успешно скопирован в буфер обмена`});
|
||||||
else
|
else
|
||||||
this.$notify.error({message: msg});
|
this.$notify.error({message: 'Копирование не удалось'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user