forked from mrsimpson/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RocketChat#116 close request (RocketChat#122)
* Don't remove the subscription on closing, only hide the room * Add interface method for UI-texts. Provide implementation for the confirmation dialogs on leave and hide (cherry picked from commit a480c20) * Added a closing text constant (cherry picked from commit c5c0ece) * Closing a request adds the comment properly and creates an automated message explaining what that means - fixes RocketChat#120 * fixed typo * Fix frontend-exception once a room has been left * Message that indicates a closed request room RocketChat#116 - improved messages
- Loading branch information
Showing
18 changed files
with
195 additions
and
105 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
packages/assistify-help-request/client/public/stylesheets/help-request.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.help-request-explanation { | ||
margin: 0 20px 40px; | ||
|
||
text-align: justify; | ||
|
||
font-style: italic; | ||
|
||
line-height: 1.4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/assistify-help-request/lib/messageTypes/requestClosed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* globals RocketChat */ | ||
|
||
Meteor.startup(function() { | ||
RocketChat.MessageTypes.registerType({ | ||
id: 'request_closed', | ||
system: true, | ||
message: 'Request_closed', | ||
data(message) { | ||
return { | ||
user_by: message.u.username, | ||
comment: message.msg | ||
}; | ||
} | ||
}); | ||
|
||
RocketChat.MessageTypes.registerType({ | ||
id: 'request_closed_explanation', | ||
system: true, | ||
message: 'Request_closed_explanation', | ||
data(message) { | ||
return { | ||
user_by: message.u.username | ||
}; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.