@banta/sdk 4.0.19 → 4.0.20
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/bundles/banta-sdk.umd.js +7 -3
- package/bundles/banta-sdk.umd.js.map +1 -1
- package/bundles/banta-sdk.umd.min.js +1 -1
- package/bundles/banta-sdk.umd.min.js.map +1 -1
- package/esm2015/lib/comments/comment-field/comment-field.component.js +8 -4
- package/fesm2015/banta-sdk.js +7 -3
- package/fesm2015/banta-sdk.js.map +1 -1
- package/package.json +1 -1
package/bundles/banta-sdk.umd.js
CHANGED
|
@@ -9627,8 +9627,12 @@
|
|
|
9627
9627
|
});
|
|
9628
9628
|
Object.defineProperty(CommentFieldComponent.prototype, "sendButtonEnabled", {
|
|
9629
9629
|
get: function () {
|
|
9630
|
-
|
|
9631
|
-
|
|
9630
|
+
if (!this.canComment) {
|
|
9631
|
+
// In this case, we want to enable the button because we want to be able to
|
|
9632
|
+
// send the permissionDenied message up to the host.
|
|
9633
|
+
return true;
|
|
9634
|
+
}
|
|
9635
|
+
return this.isValidMessage
|
|
9632
9636
|
&& !this.hasPendingAttachments
|
|
9633
9637
|
&& !this.sending;
|
|
9634
9638
|
},
|
|
@@ -9790,7 +9794,7 @@
|
|
|
9790
9794
|
case 1:
|
|
9791
9795
|
_b.trys.push([1, , 7, 8]);
|
|
9792
9796
|
text = (this.text || '').trim();
|
|
9793
|
-
if (!this.isValidMessage)
|
|
9797
|
+
if (this.canComment && !this.isValidMessage)
|
|
9794
9798
|
return [2 /*return*/];
|
|
9795
9799
|
message = {
|
|
9796
9800
|
user: this.user,
|