feat: add local user avatar

This commit is contained in:
DarkSky
2024-08-23 12:35:38 +08:00
parent 8be3ecbdbd
commit 74d7ca7f8e
2 changed files with 8 additions and 0 deletions
@@ -242,6 +242,13 @@ const CloudUserAvatar = (props: { type: PagePropertyType }) => {
<span>{account.label}</span>
</>
);
} else {
return (
<>
<Avatar name="?" size={20} />
<span>{t['com.affine.page-properties.property-user-local']()}</span>
</>
);
}
return null;
};
@@ -857,6 +857,7 @@
"com.affine.page-properties.page-info.view": "View Info",
"com.affine.page-properties.property-value-placeholder": "Empty",
"com.affine.page-properties.property-user-avatar-no-record": "No Record",
"com.affine.page-properties.property-user-local": "Local User",
"com.affine.page-properties.property.always-hide": "Always hide",
"com.affine.page-properties.property.always-show": "Always show",
"com.affine.page-properties.property.checkbox": "Checkbox",