Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change url for groupfolder apps on admin tab #581

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- Add quick link for `group folder` app when not downloaded and enabled (project folder setup)

## 2.6.1 - 2024-02-19
### Changed
Expand Down
7 changes: 4 additions & 3 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -617,11 +617,12 @@ export default {
}
},
projectFolderSetUpErrorMessageDescription(errorKey) {
const linkText = t('integration_openproject', 'from here')
const htmlLink = `<a class="link" href="https://apps.nextcloud.com/apps/groupfolders" target="_blank" title="${linkText}">${linkText}</a>`
const linkText = t('integration_openproject', 'Download and enable it here')
const url = generateUrl('settings/apps/files/groupfolders')
const htmlLink = `<a class="link" href="${url}" target="_blank" title="${linkText}">${linkText}</a>`
switch (errorKey) {
case 'The "Group folders" app is not installed' :
return t('integration_openproject', 'Please install the "Group folders" app to be able to use automatic managed folders or deactivate the automatically managed folders. You can download and install the "Group folders" app {htmlLink}.', { htmlLink }, null, { escape: false, sanitize: false })
return t('integration_openproject', 'Please install the "Group folders" app to be able to use automatically managed folders, {htmlLink}', { htmlLink }, null, { escape: false, sanitize: false })
default:
return this.errorHintForProjectFolderConfigAlreadyExists
}
Expand Down
Loading