Added notification when a new share has completed
This commit is contained in:
parent
b897d8275a
commit
d97c6ab369
|
@ -566,7 +566,9 @@ app.controller('websiteCtrl', [
|
||||||
|
|
||||||
vm.shareFolderFrom = function (r, opts) {
|
vm.shareFolderFrom = function (r, opts) {
|
||||||
var sharePath;
|
var sharePath;
|
||||||
if (vm.breadcrumbsPath.join('/') === '' && vm.breadcrumbs.join('/') === '') {
|
if (vm.breadcrumbsPath === undefined && vm.breadcrumbs === undefined) {
|
||||||
|
sharePath = '/';
|
||||||
|
} else if (vm.breadcrumbsPath.join('/') === '' && vm.breadcrumbs.join('/') === '') {
|
||||||
sharePath = '/';
|
sharePath = '/';
|
||||||
} else {
|
} else {
|
||||||
sharePath = cleanPathQuery(vm.breadcrumbsPath.join('/'));
|
sharePath = cleanPathQuery(vm.breadcrumbsPath.join('/'));
|
||||||
|
@ -608,7 +610,10 @@ app.controller('websiteCtrl', [
|
||||||
var arr = r.sharedWith || [];
|
var arr = r.sharedWith || [];
|
||||||
arr.push(result.data);
|
arr.push(result.data);
|
||||||
r.sharedWith = arr;
|
r.sharedWith = arr;
|
||||||
window.alert(JSON.stringify(result.data));
|
var path = result.data.path;
|
||||||
|
var person = result.data.comment;
|
||||||
|
var msg = "You have shared " + "'" + path + "'" + ' with ' + person + ".";
|
||||||
|
vm.buildNotification(result, msg);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue