Просмотр исходного кода

fix: plugin dashboard did not get plugin id after import

Torkel Ödegaard 7 лет назад
Родитель
Сommit
21d48df095

+ 1 - 0
pkg/services/dashboards/dashboard_service.go

@@ -113,6 +113,7 @@ func (dr *dashboardServiceImpl) buildSaveDashboardCommand(dto *SaveDashboardDTO)
 		UserId:    dto.User.UserId,
 		FolderId:  dash.FolderId,
 		IsFolder:  dash.IsFolder,
+		PluginId:  dash.PluginId,
 	}
 
 	if !dto.UpdatedAt.IsZero() {

+ 1 - 3
public/app/features/plugins/import_list/import_list.html

@@ -9,9 +9,7 @@
 					<a href="{{dash.importedUrl}}" ng-show="dash.imported">
 						{{dash.title}}
 					</a>
-					<span ng-show="!dash.imported">
-						{{dash.title}}
-					</span>
+					<span ng-show="!dash.imported">{{dash.title}}</span>
 				</td>
 				<td style="text-align: right">
 					<button class="btn btn-secondary btn-small" ng-click="ctrl.import(dash, false)" ng-show="!dash.imported">