Skip to content

Commit

Permalink
Merge branch 'staging' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
felixriehm committed Apr 15, 2024
2 parents 1485c43 + 61ec0c7 commit 79548e4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
31 changes: 26 additions & 5 deletions web/src/service_event/event_buffer_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,42 @@ export class EventBufferData {
private generateSingleCircleSubTitle(titleInput: string, serviceEvent: ServiceEvent) : string{
let title = titleInput;
let eventCirclesNumber = this.eventCirclesArray.length;
let isPlural: boolean = eventCirclesNumber > 1
if(serviceEvent === ServiceEvent.keeper_file_edit || serviceEvent === ServiceEvent.keeper_file_create) {
title = title + ' [' + eventCirclesNumber + ' files]'
if(isPlural) {
title = title + ' [' + eventCirclesNumber + ' files]'
} else {
title = title + ' [' + eventCirclesNumber + ' file]'
}
}
if(serviceEvent === ServiceEvent.keeper_new_library) {
title = title + ' [' + eventCirclesNumber + ' libraries]'
if(isPlural) {
title = title + ' [' + eventCirclesNumber + ' libraries]'
} else {
title = title + ' [' + eventCirclesNumber + ' library]'
}
}
if(serviceEvent === ServiceEvent.minerva_public_message || serviceEvent === ServiceEvent.minerva_direct_message
|| serviceEvent === ServiceEvent.minerva_private_message || serviceEvent === ServiceEvent.minerva_group_message) {
title = title + ' [' + eventCirclesNumber + ' messages]'
if(isPlural) {
title = title + ' [' + eventCirclesNumber + ' messages]'
} else {
title = title + ' [' + eventCirclesNumber + ' message]'
}
}
if(serviceEvent === ServiceEvent.bloxberg_confirmed_transaction) {
title = title + ' [' + eventCirclesNumber + ' transactions]'
if(isPlural) {
title = title + ' [' + eventCirclesNumber + ' transactions]'
} else {
title = title + ' [' + eventCirclesNumber + ' transaction]'
}
}
if(serviceEvent === ServiceEvent.bloxberg_block) {
title = title + ' [' + eventCirclesNumber + ' blocks]'
if(isPlural) {
title = title + ' [' + eventCirclesNumber + ' blocks]'
} else {
title = title + ' [' + eventCirclesNumber + ' block]'
}
}

return title;
Expand Down
13 changes: 8 additions & 5 deletions web/src/theme/visualisationDirector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ export class VisualisationDirector {
getNextVisualisation(): Visualisation{
let vis: Visualisation = this.current_visualisation
if(this.settings_data.mixed) {
if(vis === Visualisation.listenTo){
vis = Visualisation.geo
} else {
vis = Visualisation.listenTo
}
vis = Visualisation.listenTo

// temporarily disabled (requested from feedback)
// if(vis === Visualisation.listenTo){
// vis = Visualisation.geo
// } else {
// vis = Visualisation.listenTo
// }
}
return vis
}
Expand Down

0 comments on commit 79548e4

Please sign in to comment.