Upstream sync
This commit is contained in:
7
app/assets/javascripts/bs_component_init.js
Normal file
7
app/assets/javascripts/bs_component_init.js
Normal file
@@ -0,0 +1,7 @@
|
||||
$(document).on("turbolinks:load", function() {
|
||||
bsCustomFileInput.init();
|
||||
})
|
||||
|
||||
$(document).on("turbolinks:load", function() {
|
||||
$(".toast").toast('show');
|
||||
})
|
||||
@@ -43,6 +43,7 @@ $(document).on "turbolinks:load", ->
|
||||
$(".flash-message").html data.flash_content
|
||||
$("#broadcast_recordings").html data.recordings_content
|
||||
$("#broadcast_recordings_nav").html data.recordings_nav_content
|
||||
$(".toast").toast('show')
|
||||
|
||||
refreshBroadcastFilesTab: (data) ->
|
||||
$("#broadcast_file_list_#{data.broadcast_token}").html data.files_content
|
||||
|
||||
@@ -23,3 +23,4 @@ $(document).on "turbolinks:load", ->
|
||||
|
||||
showDownloadStatusUpdate: (content) ->
|
||||
$(".flash-message").html content
|
||||
$(".toast").toast('show')
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
$(document).on("turbolinks:load", function() {
|
||||
bsCustomFileInput.init()
|
||||
})
|
||||
@@ -24,4 +24,4 @@ $(document).on("click", "[data-behavior=play_stream]", function() {
|
||||
|
||||
function clearPlayingHighlight() {
|
||||
$(".playing-highlight").removeClass("playing-highlight");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -495,3 +495,30 @@ trix-toolbar {
|
||||
.playing-highlight {
|
||||
background-color: scale-color($primary, $lightness: 80%);
|
||||
}
|
||||
|
||||
// Toast min width and border radius
|
||||
.toast-min-w-border-radius {
|
||||
min-width: 18rem;
|
||||
border-radius: 0.8rem;
|
||||
}
|
||||
|
||||
// Toast left border primary
|
||||
.toast-border-left-primary {
|
||||
border-left: 8px solid $primary;
|
||||
}
|
||||
|
||||
// Toast left border danger
|
||||
.toast-border-left-danger {
|
||||
border-left: 8px solid $danger;
|
||||
}
|
||||
|
||||
// Change link color to primary on toast notifications
|
||||
.toast {
|
||||
a {
|
||||
color: $primary;
|
||||
}
|
||||
|
||||
a.btn {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user