Show current database in sidebar header

This commit is contained in:
Dan Sosedoff 2015-01-03 20:55:22 -06:00
parent f545746e7e
commit 8b3c5bd8e9
4 changed files with 522 additions and 509 deletions

1017
bindata.go

File diff suppressed because it is too large Load Diff

View File

@ -103,6 +103,10 @@
overflow: auto; overflow: auto;
} }
#sidebar div.tables-list .title span.current-database {
margin-left: 4px;
}
#sidebar div.tables-list .title:hover span.refresh { #sidebar div.tables-list .title:hover span.refresh {
display: inline-block; display: inline-block;
} }

View File

@ -32,8 +32,8 @@
<div class="tables-list"> <div class="tables-list">
<div class="wrap"> <div class="wrap">
<div class="title"> <div class="title">
Database Tables <i class="fa fa-database"></i> <span class="current-database" id="current_database"></span>
<span class="refresh" id="refresh_tables"><i class="fa fa-refresh"></i></span> <span class="refresh" id="refresh_tables" title="Refresh tables list"><i class="fa fa-refresh"></i></span>
</div> </div>
<ul id="tables"></ul> <ul id="tables"></ul>
</div> </div>

View File

@ -546,8 +546,10 @@ $(document).ready(function() {
} }
else { else {
connected = true; connected = true;
$("#connection_window").hide();
loadTables(); loadTables();
$("#connection_window").hide();
$("#current_database").text(resp.current_database);
$("#main").show(); $("#main").show();
} }
}); });
@ -564,6 +566,8 @@ $(document).ready(function() {
else { else {
connected = true; connected = true;
loadTables(); loadTables();
$("#current_database").text(resp.current_database);
$("#main").show(); $("#main").show();
} }
}); });