@veloceapps/sdk 8.0.0-134 → 8.0.0-135
Sign up to get free protection for your applications and to get access to all the features.
- package/core/services/context.service.d.ts +1 -0
- package/esm2020/core/services/context.service.mjs +12 -11
- package/fesm2015/veloceapps-sdk-core.mjs +11 -10
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +11 -10
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -103,16 +103,17 @@ class ContextService {
|
|
103
103
|
return this.resolve().properties.mode;
|
104
104
|
}
|
105
105
|
get isEditMode$() {
|
106
|
-
return this.resolve$().pipe(map(() =>
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
return
|
115
|
-
}
|
106
|
+
return this.resolve$().pipe(map(() => this.isEditMode));
|
107
|
+
}
|
108
|
+
get isEditMode() {
|
109
|
+
const context = this.resolve();
|
110
|
+
if (context.mode === ConfigurationContextMode.ACCOUNT) {
|
111
|
+
return true;
|
112
|
+
}
|
113
|
+
if (context.mode === ConfigurationContextMode.QUOTE) {
|
114
|
+
return context.properties.Status === 'Draft';
|
115
|
+
}
|
116
|
+
return false;
|
116
117
|
}
|
117
118
|
resolve() {
|
118
119
|
if (!this.context.value) {
|