Преглед на файлове

datasource: fix merge conflict - restore dashboards tab

Daniel Lee преди 8 години
родител
ревизия
07cd182617
променени са 2 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 1 1
      public/app/features/plugins/ds_edit_ctrl.ts
  2. 5 2
      public/app/features/plugins/partials/ds_edit.html

+ 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>