@projectcaluma/ember-distribution 11.0.0-beta.36 → 11.0.0-beta.37
Sign up to get free protection for your applications and to get access to all the features.
@@ -57,12 +57,9 @@ export default class InquiryAbility extends Ability {
|
|
57
57
|
get canEdit() {
|
58
58
|
return (
|
59
59
|
this.hasBasePermission &&
|
60
|
-
|
61
|
-
|
62
|
-
(this.
|
63
|
-
(this.isReady &&
|
64
|
-
this.hasCustomPermission("sendInquiry", this.model))) &&
|
65
|
-
this.isControlling
|
60
|
+
(this.isSuspended || this.isReady) &&
|
61
|
+
this.isControlling &&
|
62
|
+
this.hasCustomPermission("editInquiry", this.model)
|
66
63
|
);
|
67
64
|
}
|
68
65
|
|
@@ -33,10 +33,7 @@ export default class CdInquiryDialogInquiryPartComponent extends Component {
|
|
33
33
|
|
34
34
|
const inquiry = this.args.inquiry;
|
35
35
|
|
36
|
-
if (
|
37
|
-
inquiry.status === "SUSPENDED" &&
|
38
|
-
this.abilities.can("edit inquiry", inquiry)
|
39
|
-
) {
|
36
|
+
if (inquiry.status === "SUSPENDED") {
|
40
37
|
return this.intl.t("caluma.distribution.status.draft");
|
41
38
|
} else if (this.abilities.can("answer inquiry", inquiry)) {
|
42
39
|
return this.answerStatus;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-distribution",
|
3
|
-
"version": "11.0.0-beta.
|
3
|
+
"version": "11.0.0-beta.37",
|
4
4
|
"description": "Ember engine for the Caluma distribution module.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon",
|
@@ -23,9 +23,9 @@
|
|
23
23
|
"@embroider/macros": "^1.9.0",
|
24
24
|
"@glimmer/component": "^1.1.2",
|
25
25
|
"@glimmer/tracking": "^1.1.2",
|
26
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
27
|
-
"@projectcaluma/ember-form": "^11.0.0-beta.
|
28
|
-
"@projectcaluma/ember-workflow": "^11.0.0-beta.
|
26
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.37",
|
27
|
+
"@projectcaluma/ember-form": "^11.0.0-beta.37",
|
28
|
+
"@projectcaluma/ember-workflow": "^11.0.0-beta.37",
|
29
29
|
"ember-apollo-client": "~4.0.2",
|
30
30
|
"ember-auto-import": "^2.4.3",
|
31
31
|
"ember-can": "^4.2.0",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"@ember/test-helpers": "2.7.0",
|
52
52
|
"@embroider/test-setup": "1.8.3",
|
53
53
|
"@faker-js/faker": "7.6.0",
|
54
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
54
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.37",
|
55
55
|
"broccoli-asset-rev": "3.0.0",
|
56
56
|
"ember-cli": "4.8.0",
|
57
57
|
"ember-cli-code-coverage": "1.0.3",
|
@@ -66,16 +66,16 @@
|
|
66
66
|
"ember-load-initializers": "2.1.2",
|
67
67
|
"ember-qunit": "6.0.0",
|
68
68
|
"ember-resolver": "8.0.3",
|
69
|
-
"ember-source": "4.8.
|
69
|
+
"ember-source": "4.8.2",
|
70
70
|
"ember-source-channel-url": "3.0.0",
|
71
71
|
"ember-try": "2.0.0",
|
72
72
|
"loader.js": "4.7.0",
|
73
|
-
"miragejs": "0.1.
|
73
|
+
"miragejs": "0.1.46",
|
74
74
|
"npm-run-all": "4.1.5",
|
75
75
|
"qunit": "2.19.3",
|
76
76
|
"qunit-dom": "2.0.0",
|
77
|
-
"sass": "1.
|
78
|
-
"webpack": "5.
|
77
|
+
"sass": "1.56.1",
|
78
|
+
"webpack": "5.75.0"
|
79
79
|
},
|
80
80
|
"engines": {
|
81
81
|
"node": "14.* || 16.* || >= 18"
|