Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #5010 - WhatsApp-Business Channel (third iteration).
Co-authored-by: Florian Liebe <fl@zammad.com> Co-authored-by: Tobias Schäfer <ts@zammad.com> Co-authored-by: Dusan Vuckovic <dv@zammad.com> Co-authored-by: Martin Gruner <mg@zammad.com> Co-authored-by: Mantas Masalskis <mm@zammad.com> Co-authored-by: Benjamin Scharf <bs@zammad.com> Co-authored-by: Rolf Schmidt <rolf.schmidt@zammad.com> Co-authored-by: Dominik Klein <dk@zammad.com>
- Loading branch information
1 parent
bed981e
commit e54fd4a
Showing
131 changed files
with
4,561 additions
and
415 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
app/assets/javascripts/app/controllers/ticket_zoom/alert.coffee
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,19 @@ | ||
class App.TicketZoomAlert extends App.ControllerObserver | ||
model: 'Ticket' | ||
observe: | ||
state_id: true | ||
preferences: true | ||
globalRerender: false | ||
|
||
render: (ticket) => | ||
alert = new App.TicketZoomChannel(ticket).channelAlert() | ||
|
||
if not alert | ||
@html '' | ||
@el.addClass('hide') | ||
return | ||
|
||
element = App.view('ticket_zoom/alert')(alert: alert) | ||
|
||
@html element | ||
@el.removeClass('hide') |
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.