feat: add share indicators for calendars and contacts, update JMAP capabilities #244
This commit is contained in:
@@ -139,6 +139,19 @@ export function AddressBookManagementSettings() {
|
||||
{t("default")}
|
||||
</span>
|
||||
)}
|
||||
{(() => {
|
||||
const shareCount = Object.keys(book.shareWith || {}).length;
|
||||
if (shareCount === 0 || book.isShared) return null;
|
||||
return (
|
||||
<span
|
||||
className="flex items-center gap-1 text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full"
|
||||
title={t("share")}
|
||||
>
|
||||
<Users className="w-3 h-3" />
|
||||
{shareCount}
|
||||
</span>
|
||||
);
|
||||
})()}
|
||||
<div className="flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
{canRename && (
|
||||
<button
|
||||
|
||||
@@ -516,6 +516,20 @@ export function CalendarManagementSettings() {
|
||||
</span>
|
||||
)}
|
||||
|
||||
{(() => {
|
||||
const shareCount = Object.keys(cal.shareWith || {}).length;
|
||||
if (shareCount === 0 || cal.isShared) return null;
|
||||
return (
|
||||
<span
|
||||
className="flex items-center gap-1 text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full"
|
||||
title={t('share')}
|
||||
>
|
||||
<Users className="w-3 h-3" />
|
||||
{shareCount}
|
||||
</span>
|
||||
);
|
||||
})()}
|
||||
|
||||
<div className="flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user