SHA256
Улучшить UI регистрации и связанные сценарии
This commit is contained in:
@@ -115,9 +115,9 @@ function targetText(target) {
|
||||
if (!target) return '';
|
||||
const login = String(target.toLogin || '').trim();
|
||||
const block = Number(target.toBlockNumber);
|
||||
if (login && Number.isInteger(block) && block >= 0) return `@${login} · блок #${block}`;
|
||||
if (login && Number.isInteger(block) && block >= 0) return `${login} · блок #${block}`;
|
||||
if (Number.isInteger(block) && block >= 0) return `блок #${block}`;
|
||||
return login ? `@${login}` : '';
|
||||
return login || '';
|
||||
}
|
||||
|
||||
function channelNameText(lineCode, channelNames) {
|
||||
@@ -157,7 +157,7 @@ function describeEntry(item, inspection, channelNames) {
|
||||
const subType = Number(frame.subType);
|
||||
|
||||
if (type === 0 && subType === 0) {
|
||||
return { title: 'Начало блокчейна', detailTitle: 'Начало блокчейна', text: body.login ? `Владелец: @${body.login}` : '', attachmentsCount: 0 };
|
||||
return { title: 'Начало блокчейна', detailTitle: 'Начало блокчейна', text: body.login ? `Владелец: ${body.login}` : '', attachmentsCount: 0 };
|
||||
}
|
||||
if (type === 0 && subType === 1) {
|
||||
const displayName = String(body.channelMeta?.title || body.channelName || '').trim() || `#${frame.blockNumber}`;
|
||||
@@ -352,7 +352,7 @@ function addDetailRow(container, label, value, { code = false } = {}) {
|
||||
function addTargetRows(container, target, fallbackLogin = '') {
|
||||
if (!target) return;
|
||||
const login = String(target.toLogin || fallbackLogin || '').trim();
|
||||
if (login) addDetailRow(container, 'Цель', `@${login}`);
|
||||
if (login) addDetailRow(container, 'Цель', login);
|
||||
if (Number.isInteger(Number(target.toForkNumber))) addDetailRow(container, 'Fork цели', target.toForkNumber);
|
||||
if (Number.isInteger(Number(target.toBlockNumber))) addDetailRow(container, 'Блок цели', `#${target.toBlockNumber}`);
|
||||
if (target.toBlockHash) addDetailRow(container, 'Хэш цели', target.toBlockHash, { code: true });
|
||||
|
||||
Reference in New Issue
Block a user