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;
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user