tag prefixing via @ and #
This commit is contained in:
@@ -33,8 +33,9 @@ export const TaskCard: Component<{ task: Task }> = (props) => {
|
||||
|
||||
if (typeof ctx === 'object' && 'bucketId' in ctx) {
|
||||
// We are in a bucket view. Hide the tag that matches this bucket's name.
|
||||
const bucketName = (ctx as { name: string }).name.toLowerCase();
|
||||
return tags.filter(t => t.toLowerCase() !== bucketName);
|
||||
// Buckets are now tagged with '@' + name.
|
||||
const bucketTagName = `@${(ctx as { name: string }).name.toLowerCase()}`;
|
||||
return tags.filter(t => t.toLowerCase() !== bucketTagName);
|
||||
}
|
||||
|
||||
return tags;
|
||||
|
||||
Reference in New Issue
Block a user