Implement a couple missing bits
This commit is contained in:
@@ -331,7 +331,8 @@ function groupNotifications(
|
||||
for (const item2 of items2) {
|
||||
if (
|
||||
item.reason === item2.reason &&
|
||||
item.reasonSubject === item2.reasonSubject
|
||||
item.reasonSubject === item2.reasonSubject &&
|
||||
item.author.did !== item2.author.did
|
||||
) {
|
||||
item2.additional = item2.additional || []
|
||||
item2.additional.push(item)
|
||||
|
||||
@@ -9,11 +9,20 @@ export class TabsSelectorModel {
|
||||
}
|
||||
}
|
||||
|
||||
export interface LinkActionsModelOpts {
|
||||
newTab?: boolean
|
||||
}
|
||||
export class LinkActionsModel {
|
||||
name = 'link-actions'
|
||||
newTab: boolean
|
||||
|
||||
constructor(public href: string, public title: string) {
|
||||
constructor(
|
||||
public href: string,
|
||||
public title: string,
|
||||
opts?: LinkActionsModelOpts,
|
||||
) {
|
||||
makeAutoObservable(this)
|
||||
this.newTab = typeof opts?.newTab === 'boolean' ? opts.newTab : true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user