diff options
author | tomneedham <tom@owncloud.com> | 2014-02-17 11:03:57 +0000 |
---|---|---|
committer | tomneedham <tom@owncloud.com> | 2014-02-17 11:03:57 +0000 |
commit | a4b6d667038be9ca82c51fd0e22e7f3e51cb1e17 (patch) | |
tree | 1b456e75e10dde0f5a65af47420daa0abfd0fdf5 /apps/files_encryption/js | |
parent | 049e03c2b92e10ef94d1f7bc900e74f078a56a9b (diff) | |
parent | 5a8d37023a84d933eaa5113400014805048a689b (diff) | |
download | nextcloud-server-a4b6d667038be9ca82c51fd0e22e7f3e51cb1e17.tar.gz nextcloud-server-a4b6d667038be9ca82c51fd0e22e7f3e51cb1e17.zip |
Merge branch 'master' into migration_unit_tests
Diffstat (limited to 'apps/files_encryption/js')
-rw-r--r-- | apps/files_encryption/js/detect-migration.js | 6 | ||||
-rw-r--r-- | apps/files_encryption/js/encryption.js | 12 |
2 files changed, 17 insertions, 1 deletions
diff --git a/apps/files_encryption/js/detect-migration.js b/apps/files_encryption/js/detect-migration.js index 301e77f24f7..f5627edf4e4 100644 --- a/apps/files_encryption/js/detect-migration.js +++ b/apps/files_encryption/js/detect-migration.js @@ -17,10 +17,14 @@ $(document).ready(function(){ data: {user: user, password: password}, async: false, success: function(response) { - if (response.data.migrationCompleted === false) { + if (response.data.migrationStatus === OC.Encryption.MIGRATION_OPEN) { var message = t('files_encryption', 'Initial encryption started... This can take some time. Please wait.'); $('#messageText').text(message); $('#message').removeClass('hidden').addClass('update'); + } else if (response.data.migrationStatus === OC.Encryption.MIGRATION_IN_PROGRESS) { + var message = t('files_encryption', 'Initial encryption running... Please try again later.'); + $('#messageText').text(message); + $('#message').removeClass('hidden').addClass('update'); } } }); diff --git a/apps/files_encryption/js/encryption.js b/apps/files_encryption/js/encryption.js new file mode 100644 index 00000000000..65ffabe55e6 --- /dev/null +++ b/apps/files_encryption/js/encryption.js @@ -0,0 +1,12 @@ +/** + * Copyright (c) 2014 + * Bjoern Schiessle <schiessle@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or later. + * See the COPYING-README file. + */ + +OC.Encryption={ + MIGRATION_OPEN:0, + MIGRATION_COMPLETED:1, + MIGRATION_IN_PROGRESS:-1, +}; |