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

This commit is contained in:
Marcus Efraimsson 2017-12-13 18:14:36 +01:00
parent 26b8483fb0
commit d736795fe6

View File

@ -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) }
});
}