aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/admin.js
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-20 00:13:06 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-13 14:58:55 +0200
commit4e0574e184bb3fa915da88d45f909982f2be8c13 (patch)
tree0021d55bf4dcd5ccf0570726e90a90d9a45451c1 /apps/settings/src/admin.js
parent22de24324728025c5299850317fc697b33375caf (diff)
downloadnextcloud-server-4e0574e184bb3fa915da88d45f909982f2be8c13.tar.gz
nextcloud-server-4e0574e184bb3fa915da88d45f909982f2be8c13.zip
Port encryption admin settings to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings/src/admin.js')
-rw-r--r--apps/settings/src/admin.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/settings/src/admin.js b/apps/settings/src/admin.js
index 3ad922ed03f..e1151d95258 100644
--- a/apps/settings/src/admin.js
+++ b/apps/settings/src/admin.js
@@ -18,37 +18,6 @@ window.addEventListener('DOMContentLoaded', () => {
$('#shareAPI p:not(#enable)').toggleClass('hidden', !this.checked)
})
- $('#enableEncryption').change(() => {
- $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden')
- })
-
- $('#reallyEnableEncryption').click(() => {
- $('#encryptionAPI div#EncryptionWarning').toggleClass('hidden')
- $('#encryptionAPI div#EncryptionSettingsArea').toggleClass('hidden')
- OCP.AppConfig.setValue('core', 'encryption_enabled', 'yes')
- $('#enableEncryption').attr('disabled', 'disabled')
- })
-
- $('#startmigration').click((event) => {
- $(window).on('beforeunload.encryption', (e) => {
- return t('settings', 'Migration in progress. Please wait until the migration is finished')
- })
- event.preventDefault()
- $('#startmigration').prop('disabled', true)
- OC.msg.startAction('#startmigration_msg', t('settings', 'Migration started …'))
- $.post(OC.generateUrl('/settings/admin/startmigration'), '', function(data) {
- OC.msg.finishedAction('#startmigration_msg', data)
- if (data.status === 'success') {
- $('#encryptionAPI div#selectEncryptionModules').toggleClass('hidden')
- $('#encryptionAPI div#migrationWarning').toggleClass('hidden')
- } else {
- $('#startmigration').prop('disabled', false)
- }
- $(window).off('beforeunload.encryption')
-
- })
- })
-
$('#shareapiExpireAfterNDays').on('input', function() {
this.value = this.value.replace(/\D/g, '')
})