diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index eba5d18..aaa29de 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -579,6 +579,7 @@ app.controller('websiteCtrl', [ if (result.data.error) { msg = result.data.error.message; } else { + vm.displaySpinner = 'hidden'; msg = 'shared with ' + person; vm.showInviteContainer = false; vm.showSharesContainer = true; @@ -838,3 +839,22 @@ app.filter('capitalize', function() { return (!!input) ? input.charAt(0).toUpperCase() + input.substr(1).toLowerCase() : ''; }; }); + +app.filter('prettyShareMode', function() { + return function(input) { + var newArry = []; + var arry = input.split(','); + arry.forEach(function(action){ + if (action.includes('w')) { + newArry.push('Write'); + } + if (action.includes('r')) { + newArry.push('Read'); + } + if (action.includes('x')) { + newArry.push('Invite'); + } + }); + return newArry.join(', '); + }; +}); diff --git a/templates/website.html b/templates/website.html index d8b9ae6..eb254dd 100644 --- a/templates/website.html +++ b/templates/website.html @@ -198,14 +198,15 @@
- +
+ change="selected()" + ng-change="showShareBtn = true">
@@ -228,7 +229,7 @@

friend@email.com

Share Path: /

-

Actions Allowed: {{ vm.prettyShareMode }}

+

Actions Allowed: wrx

Invite: pending