Merge pull request #2531 from mhomol/tour-wp-order

Tour Sample quick update - part order
This commit is contained in:
Hugo Bernier 2022-04-10 19:18:08 -07:00 committed by GitHub
commit 6b2e3ae914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -30,3 +30,7 @@ obj
# Styles Generated Code
*.scss.ts
# .CER Certificates
*.cer
# .PEM Certificates
*.pem

View File

@ -9,7 +9,7 @@
"A SPFx WebPart using PnP/PnPjs, @pnp/spfx-property-controls and ReactTourJS."
],
"creationDateTime": "2019-11-23",
"updateDateTime": "2019-11-23",
"updateDateTime": "2022-04-06",
"products": [
"SharePoint"
],

View File

@ -72,11 +72,11 @@ export default class TourWebPart extends BaseClientSideWebPart<ITourWebPartProps
var wpName = {}
var wp = {};
if (control.data.webPartData != undefined) {
wpName = `sec[${section.order}] col[${column.order}] - ${control.data.webPartData.title}`;
wpName = `sec[${section.order}] col[${column.order}] wp[${control.order}] - ${control.data.webPartData.title}`;
wp = { text: wpName, key: control.data.webPartData.instanceId };
wpData.push(wp);
} else {
wpName = `sec[${section.order}] col[${column.order}] - "Webpart"`;
wpName = `sec[${section.order}] col[${column.order}] wp[${control.order}] - "Webpart"`;
wp = { text: wpName, key: control.data.id };
}
wpData.push(wp);