diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-12 15:50:39 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-13 17:10:58 -0400 |
commit | b6b2f8826bf4591142644e571571df0f226c3cc1 (patch) | |
tree | ca5d11f2b95e3e063a6f57b7c7004569bf2eb8e1 /apps/files_external | |
parent | be32625fcc04d18aac5b0d68a8880e8dc2593e37 (diff) | |
download | nextcloud-server-b6b2f8826bf4591142644e571571df0f226c3cc1.tar.gz nextcloud-server-b6b2f8826bf4591142644e571571df0f226c3cc1.zip |
Show access granted label next to Google Drive and Dropbox storage in configuration
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/js/dropbox.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/google.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js index 08796cbbdc9..770a9a1fa69 100644 --- a/apps/files_external/js/dropbox.js +++ b/apps/files_external/js/dropbox.js @@ -21,6 +21,8 @@ $(document).ready(function() { OC.dialogs.alert(result.data.message, 'Error configuring Dropbox storage'); } }); + } else if ($(this).find('.configuration #granted').length == 0) { + $(this).find('.configuration').append('<span id="granted">Access granted</span>'); } } } diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 55042194c7d..8e2cdd32229 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -22,6 +22,8 @@ $(document).ready(function() { OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); } }); + } else if ($(this).find('.configuration #granted').length == 0) { + $(this).find('.configuration').append('<span id="granted" style="padding-left:0.5em;">Access granted</span>'); } } } |