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');
}
}
}