Browse Source

datasource: fix merge conflict - restore dashboards tab

Daniel Lee 8 years ago
parent
commit
07cd182617

+ 1 - 1
public/app/features/plugins/ds_edit_ctrl.ts

@@ -114,7 +114,7 @@ export class DataSourceEditCtrl {
     this.hasDashboards = false;
     return this.backendSrv.get('/api/plugins/' + this.current.type + '/settings').then(pluginInfo => {
       this.datasourceMeta = pluginInfo;
-      this.hasDashboards = _.find(pluginInfo.includes, {type: 'dashboard'});
+      this.hasDashboards = _.find(pluginInfo.includes, {type: 'dashboard'}) !== undefined;
     });
   }
 

+ 5 - 2
public/app/features/plugins/partials/ds_edit.html

@@ -83,6 +83,9 @@
 				<br />
 
 			</form>
-		</div>
-	</div>
+    </div>
+    <div ng-if="ctrl.tabIndex === 1" class="tab-content">
+      <dashboard-import-list plugin="ctrl.datasourceMeta" datasource="ctrl.current"></dashboard-import-list>
+    </div>
+  </div>
 </div>