import {AuthService} from '@eg/core/auth.service';
import {NetService} from '@eg/core/net.service';
import {StringComponent} from '@eg/share/string/string.component';
+import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component';
@Component({
templateUrl: './admin-carousel.component.html'
}
});
};
+
+ this.editSelected = (carouselFields: IdlObject[]) => {
+ // Edit each IDL thing one at a time
+ const editOneThing = (carousel: IdlObject) => {
+ if (!carousel) { return; }
+
+ this.showEditDialog(carousel).then(
+ () => editOneThing(carouselFields.shift()));
+ };
+
+ editOneThing(carouselFields.shift());
+ };
}
mungeCarousel(editMode: string, rec: IdlObject) {