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

dashfolders: remove error message when moving to the same folder. #10135

Marcus Efraimsson 8 лет назад
Родитель
Сommit
d736795fe6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      public/app/core/components/manage_dashboards/manage_dashboards.ts

+ 2 - 2
public/app/core/components/manage_dashboards/manage_dashboards.ts

@@ -134,12 +134,12 @@ export class ManageDashboardsCtrl {
     const selectedDashboards = this.getDashboardsToMove();
 
     const template = '<move-to-folder-modal dismiss="dismiss()" ' +
-      'dashboards="model.dashboards" from-folder-id="model.fromFolderId" after-save="model.afterSave()">' +
+      'dashboards="model.dashboards" after-save="model.afterSave()">' +
       '</move-to-folder-modal>`';
     appEvents.emit('show-modal', {
       templateHtml: template,
       modalClass: 'modal--narrow',
-      model: { dashboards: selectedDashboards, fromFolderId: this.folderId ? Number(this.folderId) : 0, afterSave: this.getDashboards.bind(this) }
+      model: { dashboards: selectedDashboards, afterSave: this.getDashboards.bind(this) }
     });
   }