diff --git a/src/api/endpoints.js b/src/api/endpoints.js
index 295020e81..ad57fc459 100644
--- a/src/api/endpoints.js
+++ b/src/api/endpoints.js
@@ -9,4 +9,5 @@ export default {
validateOPInstance: generateUrl('/apps/integration_openproject/is-valid-op-instance'),
adminConfig: generateUrl('/apps/integration_openproject/admin-config'),
nextcloudOAuth: generateUrl('/apps/integration_openproject/nc-oauth'),
+ projectFolderStatus: generateUrl('/apps/integration_openproject/project-folder-status'),
}
diff --git a/src/api/settings.js b/src/api/settings.js
index d8e12372c..9681867a0 100644
--- a/src/api/settings.js
+++ b/src/api/settings.js
@@ -17,3 +17,7 @@ export function saveAdminConfig(configs) {
export function createNextcloudOAuthClient() {
return axios.post(endpoints.nextcloudOAuth)
}
+
+export function getProjectFolderStatus() {
+ return axios.get(endpoints.projectFolderStatus)
+}
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue
index e85438bf1..db0769ecb 100644
--- a/src/components/AdminSettings.vue
+++ b/src/components/AdminSettings.vue
@@ -35,158 +35,25 @@
:oauth-settings="{
openproject_client_id: state.openproject_client_id,
openproject_client_secret: state.openproject_client_secret,
- nc_oauth_client: state.nc_oauth_client
+ nc_oauth_client: state.nc_oauth_client,
+ }"
+ @formcomplete="markFormComplete" />
+
- {{ state.project_folder_info.errorMessage }} - {{ projectFolderSetupError }} -
- -- {{ t('integration_openproject', 'Encryption for the Team Folders App is not enabled.') }} -
- -- {{ - t('integration_openproject', 'We recommend using this functionality but it is not mandatory. Please activate it in case you want to use the automatic creation and management of project folders.') - }} -
-- {{ - t('integration_openproject', 'Let OpenProject create folders per project automatically. It will ensure that every team member has always the correct access permissions.') - }} -
-
- {{
- t('integration_openproject', 'For automatically managing project folders, this app needs to setup a special team folder, assigned to a group and managed by a user, each called "OpenProject".')
- }}
- {{
- t('integration_openproject', 'The app will never delete files or folders, even if you deactivate this later.')
- }}
-
+ + A new user will receive these defaults and they will be applied to the integration app till the user changes them. + +
+ ++ Displays a link to your OpenProject instance in the Nextcloud header. +
++ Allows you to search OpenProject work packages via the universal search bar in Nextcloud. +
+The group "OpenProject" already exists
+Setting up the OpenProject user, group and team folder was not possible. Please check this {htmlLink} on how to resolve this situation.
++ Let OpenProject create folders per project automatically. It will ensure that every team member has always the correct access permissions. +
+ For automatically managing project folders, this app needs to setup a special team folder, assigned to a group and managed by a user, each called "OpenProject".
+ The app will never delete files or folders, even if you deactivate this later.
+
The team folder name "OpenProject" already exists
+Setting up the OpenProject user, group and team folder was not possible. Please check this {htmlLink} on how to resolve this situation.
++ Let OpenProject create folders per project automatically. It will ensure that every team member has always the correct access permissions. +
+ For automatically managing project folders, this app needs to setup a special team folder, assigned to a group and managed by a user, each called "OpenProject".
+ The app will never delete files or folders, even if you deactivate this later.
+
The user "OpenProject" already exists
+Setting up the OpenProject user, group and team folder was not possible. Please check this {htmlLink} on how to resolve this situation.
++ Let OpenProject create folders per project automatically. It will ensure that every team member has always the correct access permissions. +
+ For automatically managing project folders, this app needs to setup a special team folder, assigned to a group and managed by a user, each called "OpenProject".
+ The app will never delete files or folders, even if you deactivate this later.
+
+ We recommend using this functionality but it is not mandatory. Please activate it in case you want to use the automatic creation and management of project folders. +
++ Let OpenProject create folders per project automatically. It will ensure that every team member has always the correct access permissions. +
+ For automatically managing project folders, this app needs to setup a special team folder, assigned to a group and managed by a user, each called "OpenProject".
+ The app will never delete files or folders, even if you deactivate this later.
+