mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
28 lines
561 B
TypeScript
28 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)
|
|
}
|
|
|
|
}
|