nextcloud/core/src/services/ContactsMenuService.ts
Ferdinand Thiessen 91f3b6b4ee
chore: adjust code to new codestyle
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-02 13:19:42 +02:00

26 lines
559 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)
}
}