diff options
Diffstat (limited to 'apps/files/src/store/dragging.ts')
-rw-r--r-- | apps/files/src/store/dragging.ts | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/apps/files/src/store/dragging.ts b/apps/files/src/store/dragging.ts index e189d552046..810f662149c 100644 --- a/apps/files/src/store/dragging.ts +++ b/apps/files/src/store/dragging.ts @@ -1,27 +1,11 @@ /** - * @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com> - * - * @author John Molakvoæ <skjnldsv@protonmail.com> - * - * @license AGPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ +import type { DragAndDropStore, FileSource } from '../types' + import { defineStore } from 'pinia' import Vue from 'vue' -import type { FileId, DragAndDropStore } from '../types' export const useDragAndDropStore = defineStore('dragging', { state: () => ({ @@ -30,9 +14,10 @@ export const useDragAndDropStore = defineStore('dragging', { actions: { /** - * Set the selection of fileIds + * Set the selection of files being dragged currently + * @param selection array of node sources */ - set(selection = [] as FileId[]) { + set(selection = [] as FileSource[]) { Vue.set(this, 'dragging', selection) }, |