-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1283 from getredash/fix/gs_dup_columns
Fix: schema browser was unstable after opening a table
- Loading branch information
Showing
3 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="schema-container"> | ||
<div class="p-t-5 p-b-5"> | ||
<input type="text" placeholder="Search schema..." class="form-control" ng-model="schemaFilter"> | ||
</div> | ||
|
||
<div class="schema-browser" vs-repeat vs-size="getSize(table)"> | ||
<div ng-repeat="table in schema | filter:schemaFilter track by table.name"> | ||
<div class="table-name" ng-click="showTable(table)"> | ||
<i class="fa fa-table"></i> <strong><span title="{{table.name}}">{{table.name}}</span><span | ||
ng-if="table.size !== undefined"> ({{table.size}})</span></strong> | ||
</div> | ||
<div collapse="table.collapsed"> | ||
<div ng-repeat="column in table.columns track by column" style="padding-left:16px;">{{column}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters