Merge branch 'develop' of github.com:martini/zammad into develop

This commit is contained in:
Martin Edenhofer 2016-01-13 20:46:09 +01:00
commit eec2801c2f
4 changed files with 37 additions and 7 deletions

View file

@ -601,6 +601,9 @@ class ChatWindow extends App.Controller
@el.addClass('is-offline')
@input.attr('disabled', true)
# add footer with create ticket button
@body.append App.view('customer_chat/chat_footer')()
maybeAddTimestamp: ->
timestamp = Date.now()

View file

@ -0,0 +1,3 @@
<div class="chat-footer">
<div class="btn btn--primary js-createTicket">Turn chat into ticket</div>
</div>

View file

@ -7275,7 +7275,6 @@ output {
}
&.is-offline {
.chat-body-holder,
.chat-controls {
opacity: 0.5;
}
@ -7286,7 +7285,7 @@ output {
background: hsl(210,8%,95%);
border: 1px solid hsl(0,0%,91%);
border-radius: 3px 3px 0 0;
height: 37px;
height: 43px;
line-height: 13px;
flex-shrink: 0;
display: flex;
@ -7336,7 +7335,7 @@ output {
.chat-disconnect,
.chat-close {
cursor: pointer;
padding: 0 4px;
padding: 10px;
.btn {
min-width: 80px;
@ -7437,6 +7436,15 @@ output {
67% { opacity: 1; transform: scale(1); }
}
.chat-footer {
border-top: 1px solid hsl(0,0%,93%);
padding: 10px;
display: flex;
justify-content: center;
align-self: stretch;
margin: 0 -10px;
}
.chat-controls {
display: flex;
align-items: flex-start;

View file

@ -11,8 +11,6 @@ class OtrsImportBrowserTest < TestCase
fail "ERROR: Need IMPORT_BT_OTRS_ENDPOINT_KEY - hint IMPORT_BT_OTRS_ENDPOINT_KEY='01234567899876543210'"
end
import_url = "#{ENV['IMPORT_BT_OTRS_ENDPOINT']};Key=#{ENV['IMPORT_BT_OTRS_ENDPOINT_KEY']}"
@browser = browser_instance
location(url: browser_url)
@ -24,13 +22,31 @@ class OtrsImportBrowserTest < TestCase
click(css: '.js-otrs-link')
invalid_key_url = "#{ENV['IMPORT_BT_OTRS_ENDPOINT']};Key=31337"
set(
css: '#otrs-link',
value: invalid_key_url
)
sleep 5
watch_for(
css: '.otrs-link-error',
value: 'Invalid API key.',
)
import_url = "#{ENV['IMPORT_BT_OTRS_ENDPOINT']};Key=#{ENV['IMPORT_BT_OTRS_ENDPOINT_KEY']}"
set(
css: '#otrs-link',
value: import_url
)
exists(
css: 'svg.icon-checkmark'
sleep 5
watch_for_disappear(
css: '.otrs-link-error',
value: 'Invalid API key.',
)
click(css: '.js-migration-start')