mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
29 lines
561 B
TypeScript
29 lines
561 B
TypeScript
|
|
/**
|
||
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type { IContactsMenuAction } from '../types/contactsMenuAction.ts'
|
||
|
|
|
||
|
|
export default class ContactsMenuService {
|
||
|
|
|
||
|
|
private _actions: IContactsMenuAction[]
|
||
|
|
|
||
|
|
constructor() {
|
||
|
|
this._actions = []
|
||
|
|
}
|
||
|
|
|
||
|
|
get actions(): IContactsMenuAction[] {
|
||
|
|
return this._actions
|
||
|
|
}
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Register an action for the contacts menu
|
||
|
|
* Actions use NcButton
|
||
|
|
*/
|
||
|
|
addAction(action: IContactsMenuAction): void {
|
||
|
|
this._actions.push(action)
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|