@attraccess/plugin-reservations 0.2.0-nightly.1197.2 → 0.2.0-nightly.1200.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -534,7 +534,7 @@ var DirectoryService = class {
|
|
|
534
534
|
return this.context.hostData.resources.getNames(resourceIds);
|
|
535
535
|
}
|
|
536
536
|
getUserNames(userIds) {
|
|
537
|
-
return this.context.hostData.users.
|
|
537
|
+
return this.context.hostData.users.getDisplayNames(userIds);
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
DirectoryService = __decorateClass([
|
|
@@ -5786,8 +5786,8 @@ function wrap(condition, inner) {
|
|
|
5786
5786
|
return `<mj-raw>{{#${kind} ${path}}}</mj-raw>${inner}<mj-raw>{{/${kind}}}</mj-raw>`;
|
|
5787
5787
|
}
|
|
5788
5788
|
var paragraph = ([key, en, , condition]) => wrap(condition, `<mj-text padding="0 0 12px 0">${tCall(key, en)}</mj-text>`);
|
|
5789
|
-
function body(spec) {
|
|
5790
|
-
const greeting = `<mj-text padding="0 0 12px 0">{{t "greeting" "${GREETING.en}" name
|
|
5789
|
+
function body(spec, greetingName = "user.displayName") {
|
|
5790
|
+
const greeting = `<mj-text padding="0 0 12px 0">{{t "greeting" "${GREETING.en}" name=${greetingName}}}</mj-text>`;
|
|
5791
5791
|
const buttons = (spec.buttons ?? []).map(
|
|
5792
5792
|
(b) => wrap(
|
|
5793
5793
|
b.condition,
|
|
@@ -5818,6 +5818,8 @@ function toTemplate(spec) {
|
|
|
5818
5818
|
variables: variablesOf(subject, html),
|
|
5819
5819
|
subject,
|
|
5820
5820
|
body: html,
|
|
5821
|
+
// Installed templates still greeting by username move to the display name unless an admin edited them.
|
|
5822
|
+
previousBodies: [body(spec, "user.username")],
|
|
5821
5823
|
translations: { de }
|
|
5822
5824
|
};
|
|
5823
5825
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-reservations",
|
|
3
|
-
"version": "0.2.0-nightly.
|
|
3
|
+
"version": "0.2.0-nightly.1200.1",
|
|
4
4
|
"description": "Official Attraccess plugin to reserve resources for a specific time window.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"backend": "^2.0.0-0",
|
|
62
62
|
"frontend": "^2.0.0-0"
|
|
63
63
|
},
|
|
64
|
-
"publishedCommit": "
|
|
64
|
+
"publishedCommit": "45e93faeec0f3dce84926e2dc8900084875478a9"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "45e93faeec0f3dce84926e2dc8900084875478a9"
|
|
67
67
|
}
|