making some better inserting patterns in serviceList

This commit is contained in:
Chris Cochrun 2023-01-20 16:50:17 -06:00
parent 1ed76ff3e3
commit 46f2d9d42f

View file

@ -520,7 +520,7 @@ Item {
ServiceItemModel.insertItem(index, name, ServiceItemModel.insertItem(index, name,
type, background, type, background,
backgroundType, newtext, backgroundType, newtext,
audio, font, fontSize, newtext.length); audio, font, fontSize, newtext.length, SlideModel);
/* totalServiceItems++; */ /* totalServiceItems++; */
return; return;
} }
@ -529,14 +529,15 @@ Item {
ServiceItemModel.insertItem(index, name, ServiceItemModel.insertItem(index, name,
type, background, type, background,
backgroundType, "", backgroundType, "",
"", "", 0, dragItemSlideNumber); "", "", 0, dragItemSlideNumber, SlideModel);
/* totalServiceItems++; */ /* totalServiceItems++; */
return; return;
} }
console.log("adding: " + name + " of type " + type); console.log("adding: " + name + " of type " + type);
ServiceItemModel.insertItem(index, name, ServiceItemModel.insertItem(index, name,
type, background, type, background,
backgroundType); backgroundType, "", "",
"", 0, 0, SlideModel);
/* totalServiceItems++; */ /* totalServiceItems++; */
} }
@ -551,16 +552,30 @@ Item {
console.log(lyrics); console.log(lyrics);
ServiceItemModel.addItem(name, type, background, ServiceItemModel.addItem(name, type, background,
backgroundType, lyrics, backgroundType, lyrics,
audio, font, fontSize); audio, font, fontSize, lyrics.length(),
SlideModel);
/* totalServiceItems++; */ /* totalServiceItems++; */
return; return;
}; };
if (type === "presentation") {
console.log("THIS IS A PRESENTATION!!!!!");
console.log(itemID);
console.log(lyrics);
ServiceItemModel.addItem(name, type, background,
backgroundType, "",
audio, font, fontSize,
dragSlideItemNumber,
SlideModel);
/* totalServiceItems++; */
return;
};
console.log(background); console.log(background);
console.log(backgroundType); console.log(backgroundType);
ServiceItemModel.addItem(name, type, background, ServiceItemModel.addItem(name, type, background,
backgroundType); backgroundType, [""], "",
"", 0, 0, SlideModel);
/* totalServiceItems++; */ /* totalServiceItems++; */
} }