Skip to content

Commit

Permalink
Hide spectro colors for the legacy recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Sep 24, 2024
1 parent 7769495 commit 8243b8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app/utils/dbpool.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var dbpool = {
pool: undefined,
getPool: function(){
if (!dbpool.pool) {
console.log("MySQL pool is being created")
// console.log("MySQL pool is being created")
dbpool.pool = mysql.createPool({
connectionLimit : 30,
connectTimeout : 30 * 1000,
Expand All @@ -23,12 +23,12 @@ var dbpool = {
database : config('db').database,
timezone: config('db').timezone
})
dbpool.pool.on('connection', function (connection) {
console.log('MySQL pool connection %d is set', connection.threadId);
});
dbpool.pool.on('release', function(connection) {
console.log('MySQL pool connection %d is released', connection.threadId);
})
// dbpool.pool.on('connection', function (connection) {
// console.log('MySQL pool connection %d is set', connection.threadId);
// });
// dbpool.pool.on('release', function(connection) {
// console.log('MySQL pool connection %d is released', connection.threadId);
// })
}
return dbpool.pool
},
Expand Down Expand Up @@ -82,7 +82,7 @@ var dbpool = {
getConnection: function(callback){
return q.ninvoke(dbpool.getPool(), 'getConnection').then(function (connection){
// Log it here since we cannot using `connection` listener
console.log('MySQL pool connection %d is set', connection.threadId);
// console.log('MySQL pool connection %d is set', connection.threadId);
dbpool.enable_query_debugging(connection);
return connection;
}).catch(function (err){
Expand Down
2 changes: 1 addition & 1 deletion assets/app/app/visualizer/layer-item/recording-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<i class="fa fa-download"></i>
</button>
</div>
<div class="btn-group ml-1" style="position: relative;" click-outside="audio_player.closeSpectroColorPopup()">
<div ng-if="visobject && visobject.legacy === false" class="btn-group ml-1" style="position: relative;" click-outside="audio_player.closeSpectroColorPopup()">
<button class="btn btn-default btn-sm control-border"
ng-disabled="!audio_player.has_recording"
ng-click="audio_player.toggleSpectroColor()"
Expand Down

0 comments on commit 8243b8a

Please sign in to comment.