From b6b2f8826bf4591142644e571571df0f226c3cc1 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 12 Aug 2012 15:50:39 -0400 Subject: [PATCH] Show access granted label next to Google Drive and Dropbox storage in configuration --- apps/files_external/js/dropbox.js | 2 ++ apps/files_external/js/google.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/files_external/js/dropbox.js b/apps/files_external/js/dropbox.js index 08796cbbdc..770a9a1fa6 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('Access granted'); } } } diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 55042194c7..8e2cdd3222 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('Access granted'); } } }