Use spaces suffix that replaces dots in username

This assumes usernames only have . or - but not both
This commit is contained in:
Girish Ramakrishnan
2018-08-28 12:07:55 -07:00
parent 937a165711
commit 0f6c0a2ccd
4 changed files with 10 additions and 4 deletions
+3
View File
@@ -18,6 +18,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$scope.searchString = '';
$scope.validAppstoreAccount = false;
$scope.appstoreConfig = null;
$scope.spacesSuffix = '';
$scope.showView = function (view) {
// wait for dialog to be fully closed to avoid modal behavior breakage when moving to a different view already
@@ -526,6 +527,8 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
function init() {
$scope.ready = false;
$scope.spacesSuffix = $scope.user.username.replace(/\./g, '-');
getAppList(function (error, apps) {
if (error) {
console.error(error);