Skip to content

Commit

Permalink
change url for groupfolder apps on admin tab (#581) (#592)
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
  • Loading branch information
nabim777 committed Mar 13, 2024
1 parent 9b9530c commit b75512e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,12 @@ export default {
}
},
projectFolderSetUpErrorMessageDescription(errorKey) {
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.')
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

0 comments on commit b75512e

Please sign in to comment.