Skip to content

Commit 66db7f8

Browse files
committed
Listing all connectors in same card
1 parent 492dafe commit 66db7f8

File tree

3 files changed

+5
-32
lines changed

3 files changed

+5
-32
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div layout="row" layout-xs="column">
2222
<div flex>
2323
<!-- <h5><a href="{{cluster ? '#/cluster/'+cluster.NAME : '#/'}}">KAFKA CONNECT</a></h5> -->
24-
<h5><a href="/#/">KAFKA CONNECT</a></h5>
24+
<h5><a href="/#/" style="color:#fff;font-weight: normal;font-size: 14px;">KAFKA CONNECT</a></h5>
2525
</div>
2626
<label ng-show="!missingEnvJS && clusters.length > 1 && !isHome" style="color:#ccc; font-size:12px"><b>SELECT CLUSTER :</b></label>
2727
<md-input-container ng-show="!missingEnvJS && clusters.length > 1 && !isHome" class="selectCluster">

src/kafka-connect/select-type/sink-or-source.controller.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ angularAPP.controller('SelectNewConnectorCtrl', function ($scope, $http, $log, $
3333
isUndefined: true,
3434
type: type
3535
}
36-
$scope.unsupportedConnectors.push(o);
36+
if (type == "Source")
37+
$scope.sources.push(o);
38+
else
39+
$scope.sinks.push(o);
3740
}
3841
});
3942
}, function (reason) {

src/kafka-connect/select-type/sink-or-source.html

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,35 +51,5 @@ <h3><b>{{sink.name}}</b></h3>
5151
</md-list>
5252
</md-content>
5353
</md-card>
54-
<md-card ng-show = "unsupportedConnectors">
55-
<!--<div style="width:100%;" class="md-toolbar-tools">-->
56-
<!--<p>Not in list? Add the connector manually</p>-->
57-
<!--</div>-->
58-
<div layout="row" ng-show="unsupportedConnectors">
59-
<md-list flex >
60-
<md-list-item ng-repeat="connector in unsupportedConnectors | filter : search2 | filter :{type :'Source' }" class="md-2-line"
61-
ng-href="{{'#/cluster/'+cluster+'/create-connector/' + connector.name }}">
62-
<img ng-src="src/assets/icons/{{connector.icon}}" class="md-avatar" style="width:40px;height:40px;"/>
63-
<div class="md-list-item-text">
64-
<h3><b>{{connector.name}}</b></h3>
65-
<p>{{connector.class}}</p>
66-
<p>{{connector.type}}</p>
67-
</div>
68-
</md-list-item>
69-
</md-list>
70-
<md-list flex >
71-
<md-list-item ng-repeat="connector in unsupportedConnectors | filter : search2 | filter :{type :'Sink' }" class="md-2-line"
72-
ng-href="{{'#/cluster/'+cluster+'/create-connector/' + connector.name }}">
73-
<img ng-src="src/assets/icons/{{connector.icon}}" class="md-avatar" style="width:40px;height:40px;"/>
74-
<div class="md-list-item-text">
75-
<h3><b>{{connector.name}}</b></h3>
76-
<p>{{connector.class}}</p>
77-
<p>{{connector.type}}</p>
78-
</div>
79-
</md-list-item>
80-
</md-list>
81-
82-
</div>
83-
</md-card>
8454
</div>
8555
</div>

0 commit comments

Comments
 (0)