-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(systemtags): Make inline tags list fully accessible
1. The label was wrong it mentioned the first and last tag, so the information was duplicated 2. It only mentioned the first and last but not all other 3. All other tags were only added as `title` which is not accessible Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
import { translate as t } from '@nextcloud/l10n' | ||
import { View, getNavigation } from '@nextcloud/files' | ||
import { getContents } from '../services/systemtags.js' | ||
|
||
import svgTagMultiple from '@mdi/svg/svg/tag-multiple.svg?raw' | ||
|
||
/** | ||
* Register the system tags files view | ||
*/ | ||
export function registerSystemTagsView() { | ||
const Navigation = getNavigation() | ||
Navigation.register(new View({ | ||
id: 'tags', | ||
name: t('systemtags', 'Tags'), | ||
caption: t('systemtags', 'List of tags and their associated files and folders.'), | ||
|
||
emptyTitle: t('systemtags', 'No tags found'), | ||
emptyCaption: t('systemtags', 'Tags you have created will show up here.'), | ||
|
||
icon: svgTagMultiple, | ||
order: 25, | ||
|
||
getContents, | ||
})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters