-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow renaming of requests #12
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,10 +58,10 @@ Template.AssistifyCreateRequest.events({ | |
console.log(err); | ||
switch (err.error) { | ||
case 'error-invalid-name': | ||
toastr.error(TAPi18n.__('Invalid_room_name', name)); | ||
toastr.error(TAPi18n.__('Invalid_room_name', `${ expertise }...`)); | ||
return; | ||
case 'error-duplicate-channel-name': | ||
toastr.error(TAPi18n.__('Duplicate_channel_name', name)); | ||
toastr.error(TAPi18n.__('Request_already_exists')); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. follow up from previous fix |
||
return; | ||
case 'error-archived-duplicate-name': | ||
toastr.error(TAPi18n.__('Duplicate_archived_channel_name', name)); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,7 @@ Template.channelSettings.onCreated(function() { | |
}, | ||
save(value, room) { | ||
let nameValidation; | ||
if (!RocketChat.authz.hasAllPermission('edit-room', room._id) || (room.t !== 'c' && room.t !== 'p')) { | ||
if (!RocketChat.authz.hasAllPermission('edit-room', room._id) || (room.t !== 'c' && room.t !== 'p' && room.t !== 'e' && room.t !== 'r')) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the semantic of 'room.t' values. |
||
return toastr.error(t('error-not-allowed')); | ||
} | ||
if (!RocketChat.settings.get('UI_Allow_room_names_with_special_chars')) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this is a real mistake, since 'expertise' has been there before.
Could it be that 'name' is a relict from a previous refactoring or this is relict by copy & paste?