Skip to content

Commit

Permalink
review address
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <[email protected]>
  • Loading branch information
nabim777 committed Oct 23, 2024
1 parent 515d426 commit d5d24db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
:title="t('integration_openproject', 'Project folders (recommended)')"
:is-setup-complete-without-project-folders="isSetupCompleteWithoutProjectFolders"
:is-there-error-after-project-folder-and-app-password-setup="isThereErrorAfterProjectFolderAndAppPasswordSetup"
:is-there-group-folders-encryption-warning="showEncryptionWarningForGroupFolders"
:show-encryption-warning-for-group-folders="showEncryptionWarningForGroupFolders"
:is-complete="isProjectFolderSetupCompleted"
:is-disabled="isProjectFolderSetUpInDisableMode"
:is-dark-theme="isDarkTheme" />
Expand Down Expand Up @@ -268,9 +268,9 @@
</NcNoteCard>
<NcNoteCard v-else-if="showEncryptionWarningForGroupFolders" class="note-card" type="warning">
<p class="note-card--title">
<b>{{ t('integration_openproject', 'Encryption for Group Folders are not enabled.') }}</b>
<b>{{ t('integration_openproject', 'Encryption for the Group Folders App is not enabled.') }}</b>
</p>
<p class="note-card--warning-description" v-html="getGroupFolderEncryptionWarningHint" /> <!-- eslint-disable-line vue/no-v-html -->
<p class="note-card--warning-description" v-html="getGroupFoldersEncryptionWarningHint" /> <!-- eslint-disable-line vue/no-v-html -->
</NcNoteCard>
<div class="form-actions">
<NcButton
Expand Down Expand Up @@ -558,10 +558,10 @@ export default {
const hintTextForAdminAudit = t('integration_openproject', 'To activate audit logs for the OpenProject integration, please enable the {htmlLinkForAdminAudit} app and follow the configuration steps outlined in the {htmlLinkForDocumentaion}.', { htmlLinkForAdminAudit, htmlLinkForDocumentaion }, null, { escape: false, sanitize: false })
return dompurify.sanitize(hintTextForAdminAudit, { ADD_ATTR: ['target'] })
},
getGroupFolderEncryptionWarningHint() {
getGroupFoldersEncryptionWarningHint() {
const linkText = t('integration_openproject', 'documentation')
const htmlLink = `<a class="link" href="https://www.openproject.org/docs/system-admin-guide/integrations/nextcloud/#files-are-not-encrypted-when-using-nextcloud-server-side-encryption" target="_blank" title="${linkText}">${linkText}</a>`
return t('integration_openproject', 'Server-side encryption is active, but encryption for group folders is not yet enabled. To ensure secure storage of files in project folders, please follow the configuration steps in the {htmlLink}.', { htmlLink }, null, { escape: false, sanitize: false })
return t('integration_openproject', 'Server-side encryption is active, but encryption for Group Folders is not yet enabled. To ensure secure storage of files in project folders, please follow the configuration steps in the {htmlLink}.', { htmlLink }, null, { escape: false, sanitize: false })
},
isIntegrationComplete() {
return (this.isServerHostFormComplete
Expand Down
6 changes: 3 additions & 3 deletions src/components/admin/FormHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div v-else-if="isThereErrorAfterProjectFolderAndAppPasswordSetup" class="project-folder-setup-error">
<ExclamationThickIcon fill-color="#FFFFFF" :size="12" />
</div>
<div v-else-if="isThereGroupFoldersEncryptionWarning" class="project-folder-setup-warning">
<div v-else-if="showEncryptionWarningForGroupFolders" class="project-folder-setup-warning">
<ExclamationThickIcon fill-color="#FFFFFF" :size="12" />
</div>
<div v-else-if="isComplete" class="complete">
Expand All @@ -25,7 +25,7 @@
:class="{
'green-text': isComplete,
'red-text': isThereErrorAfterProjectFolderAndAppPasswordSetup,
'warn-text': isThereGroupFoldersEncryptionWarning
'warn-text': showEncryptionWarningForGroupFolders
}">
{{ title }}
</div>
Expand Down Expand Up @@ -72,7 +72,7 @@ export default {
type: Boolean,
default: false,
},
isThereGroupFoldersEncryptionWarning: {
showEncryptionWarningForGroupFolders: {
type: Boolean,
default: false,
},
Expand Down

0 comments on commit d5d24db

Please sign in to comment.