diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1 diff --git a/static/js/modals.js b/static/js/modals.js index 855e51d..a385aa0 100644 --- a/static/js/modals.js +++ b/static/js/modals.js @@ -43,7 +43,7 @@ const AssetModal = {
@@ -131,12 +131,13 @@ const AssetModal = { const p = store.providers.find(x => x.id === f.value.provider_id); if (p) f.value.provider = p.slug; } - // 账号候选显示平台名:platform 存的是 slug,回退显示原值 - function platformName(slug) { - const p = store.providers.find(x => x.slug === slug); - return p ? p.name : slug; + // 账号候选显示:说明优先,其次平台名(platform 存的是 slug,回退原值) + function accountLabel(a) { + if (a.remark) return a.remark + ' · ' + a.name; + const p = store.providers.find(x => x.slug === a.platform); + return p ? a.name + '(' + p.name + ')' : a.name; } - return { store, Fmt, f, providersForType, onProviderChange, platformName, save: saveAsset }; + return { store, Fmt, f, providersForType, onProviderChange, accountLabel, save: saveAsset }; }, }; @@ -224,6 +225,8 @@ const AccountModal = {
+ -

修改账号标识后,引用该账号的资产会自动同步更新。

diff --git a/static/js/views/providers.js b/static/js/views/providers.js index ba0c78e..e0c881a 100644 --- a/static/js/views/providers.js +++ b/static/js/views/providers.js @@ -22,10 +22,10 @@ const ProvidersView = {
-
{{ a.name }} +
{{ a.remark || a.name }} @ {{ platformName(a.platform) }}
-
关联 {{ a.asset_count }} 个资产 · {{ a.remark }}
+
{{ a.name }} · 关联 {{ a.asset_count }} 个资产