= ({
- {/* Right Header Section: Sharing Badge, Icon-Only Button & View Switcher */}
+ {/* Right Header Section like the notes: status (live, shared) | actions (share, view switcher) */}
+
{currentSelectedList && (() => {
const listOwnerId = currentSelectedList.ownerId || currentSelectedList.userId;
const isOwner = currentSelectedList.isOwner !== false && (!listOwnerId || listOwnerId === currentUser?.id);
@@ -1910,6 +1912,7 @@ export const TasksView: React.FC = ({
)
)}
+
handleOpenShareModal(currentSelectedList)}
@@ -1921,6 +1924,7 @@ export const TasksView: React.FC = ({
);
})()}
+ {!currentSelectedList && }
{/* View Switcher: List vs Kanban */}
@@ -1973,16 +1977,22 @@ export const TasksView: React.FC = ({
: `Papierkorb (${taskTrash.length})`}
- {currentSelectedList && (
- handleOpenShareModal(currentSelectedList)}
- className="btn-icon min-h-[36px] min-w-[36px] flex items-center justify-center flex-shrink-0"
- title="Aufgabenliste teilen"
- >
-
-
- )}
+
+
+ {currentSelectedList && (
+ <>
+
+ handleOpenShareModal(currentSelectedList)}
+ className="btn-icon min-h-[36px] min-w-[36px] flex items-center justify-center"
+ title="Aufgabenliste teilen"
+ >
+
+
+ >
+ )}
+
{isSelectedListReadOnly && (