Skip to content

Commit

Permalink
refactor naming
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar <[email protected]>
  • Loading branch information
SagarGi committed Oct 16, 2024
1 parent 381966f commit 79ed572
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 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-after-project-folder-setup="showEncryptionWarningForGroupFolders"
:is-there-group-folders-encryption-warning="showEncryptionWarningForGroupFolders"
:is-complete="isProjectFolderSetupCompleted"
:is-disabled="isProjectFolderSetUpInDisableMode"
:is-dark-theme="isDarkTheme" />
Expand Down Expand Up @@ -264,7 +264,7 @@
:project-folder-set-up-error="state.project_folder_info.errorMessage" />
<NcNoteCard v-else-if="showEncryptionWarningForGroupFolders" class="note-card" type="warning">
<p><b>Encryption for Group Folders are not enabled.</b></p>
<p class="note-card--info" v-html="getGroupFolderEncryptionNotEnabledHint"></p> <!-- eslint-disable-line vue/no-v-html -->
<p class="note-card--info" v-html="getGroupFolderEncryptionWarningHint"></p> <!-- eslint-disable-line vue/no-v-html -->
</NcNoteCard>
<div class="form-actions">
<NcButton
Expand Down Expand Up @@ -554,7 +554,7 @@ 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'] })
},
getGroupFolderEncryptionNotEnabledHint() {
getGroupFolderEncryptionWarningHint() {
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 })
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="isThereGroupFoldersEncryptionWarningAfterProjectFolderSetup" class="project-folder-setup-warning">
<div v-else-if="isThereGroupFoldersEncryptionWarning" 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': isThereGroupFoldersEncryptionWarningAfterProjectFolderSetup
'warn-text': isThereGroupFoldersEncryptionWarning
}">
{{ title }}
</div>
Expand Down Expand Up @@ -72,7 +72,7 @@ export default {
type: Boolean,
default: false,
},
isThereGroupFoldersEncryptionWarningAfterProjectFolderSetup: {
isThereGroupFoldersEncryptionWarning: {
type: Boolean,
default: false,
},
Expand Down

0 comments on commit 79ed572

Please sign in to comment.