Skip to content

Commit

Permalink
Limit chars also by renaming sessions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Dec 15, 2019
1 parent 5d914eb commit 3c8216f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -315,6 +315,10 @@ angular.module('lmn.session').controller 'LMNSessionController', ($scope, $http,
messagebox.prompt(gettext('Session Name'), comment).then (msg) ->
if not msg.value
return
testChar = validation.isValidLinboConf(msg.value)
if testChar != true
notify.error gettext(testChar)
return
$http.post('/api/lmn/session/sessions', {action: 'rename-session', session: session, comment: msg.value}).then (resp) ->
$scope.getSessions($scope.identity.user)
$scope.currentSession.name = ''
Expand Down

0 comments on commit 3c8216f

Please sign in to comment.