summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-24 13:45:52 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-24 13:45:52 -0500
commit0dbf1d02600ef4075ceffe9c62c1ed32cc24592f (patch)
tree2db27ca226035add120fec8f2ca529c84001d0f6 /apps/files_external/ajax
parent5fb4ed2d92b28bfcd0647233421a3614b00e6d4c (diff)
downloadnextcloud-server-0dbf1d02600ef4075ceffe9c62c1ed32cc24592f.tar.gz
nextcloud-server-0dbf1d02600ef4075ceffe9c62c1ed32cc24592f.zip
Show status icons for mount points in external storage UI
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r--apps/files_external/ajax/addMountPoint.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/ajax/addMountPoint.php b/apps/files_external/ajax/addMountPoint.php
index 4cd8871b310..fed2ddfcf3d 100644
--- a/apps/files_external/ajax/addMountPoint.php
+++ b/apps/files_external/ajax/addMountPoint.php
@@ -10,9 +10,10 @@ if ($_POST['isPersonal'] == 'true') {
OCP\JSON::checkAdminUser();
$isPersonal = false;
}
-OC_Mount_Config::addMountPoint($_POST['mountPoint'],
+$status = OC_Mount_Config::addMountPoint($_POST['mountPoint'],
$_POST['class'],
$_POST['classOptions'],
$_POST['mountType'],
$_POST['applicable'],
- $isPersonal); \ No newline at end of file
+ $isPersonal);
+OCP\JSON::success(array('data' => array('message' => $status))); \ No newline at end of file