Show current database in sidebar header
This commit is contained in:
parent
f545746e7e
commit
8b3c5bd8e9
1017
bindata.go
1017
bindata.go
File diff suppressed because it is too large
Load Diff
@ -103,6 +103,10 @@
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#sidebar div.tables-list .title span.current-database {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
#sidebar div.tables-list .title:hover span.refresh {
|
||||
display: inline-block;
|
||||
}
|
||||
|
@ -32,8 +32,8 @@
|
||||
<div class="tables-list">
|
||||
<div class="wrap">
|
||||
<div class="title">
|
||||
Database Tables
|
||||
<span class="refresh" id="refresh_tables"><i class="fa fa-refresh"></i></span>
|
||||
<i class="fa fa-database"></i> <span class="current-database" id="current_database"></span>
|
||||
<span class="refresh" id="refresh_tables" title="Refresh tables list"><i class="fa fa-refresh"></i></span>
|
||||
</div>
|
||||
<ul id="tables"></ul>
|
||||
</div>
|
||||
|
@ -546,8 +546,10 @@ $(document).ready(function() {
|
||||
}
|
||||
else {
|
||||
connected = true;
|
||||
$("#connection_window").hide();
|
||||
loadTables();
|
||||
|
||||
$("#connection_window").hide();
|
||||
$("#current_database").text(resp.current_database);
|
||||
$("#main").show();
|
||||
}
|
||||
});
|
||||
@ -564,6 +566,8 @@ $(document).ready(function() {
|
||||
else {
|
||||
connected = true;
|
||||
loadTables();
|
||||
|
||||
$("#current_database").text(resp.current_database);
|
||||
$("#main").show();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user