@yoobic/yobi 8.6.1 → 8.6.2
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.
@@ -844,10 +844,9 @@ const YooFormCaptureComponent = class {
|
|
844
844
|
const imageData = this.getImageData(index$1);
|
845
845
|
const { drawings, src } = imageData;
|
846
846
|
const isMultipleData = isFinite(index$1) && this.extraData && ((lodash.isArray(this.extraData) && !!this.extraData.length) || !!Object.keys(this.extraData).length) && this.extraData[index$1];
|
847
|
-
const extraActions = [
|
847
|
+
const extraActions = !index.isNativeFilePath(src) && [
|
848
848
|
{
|
849
849
|
icon: 'download',
|
850
|
-
isVisible: () => !index.isNativeFilePath(src),
|
851
850
|
handler: () => {
|
852
851
|
index.downloadFile(isMultipleData && this.extraData[index$1].stitch || src);
|
853
852
|
}
|
@@ -801,10 +801,9 @@ export class YooFormCaptureComponent {
|
|
801
801
|
const imageData = this.getImageData(index);
|
802
802
|
const { drawings, src } = imageData;
|
803
803
|
const isMultipleData = isFinite(index) && this.extraData && ((isArray(this.extraData) && !!this.extraData.length) || !!Object.keys(this.extraData).length) && this.extraData[index];
|
804
|
-
const extraActions = [
|
804
|
+
const extraActions = !isNativeFilePath(src) && [
|
805
805
|
{
|
806
806
|
icon: 'download',
|
807
|
-
isVisible: () => !isNativeFilePath(src),
|
808
807
|
handler: () => {
|
809
808
|
downloadFile(isMultipleData && this.extraData[index].stitch || src);
|
810
809
|
}
|
@@ -840,10 +840,9 @@ const YooFormCaptureComponent = class {
|
|
840
840
|
const imageData = this.getImageData(index);
|
841
841
|
const { drawings, src } = imageData;
|
842
842
|
const isMultipleData = isFinite(index) && this.extraData && ((isArray(this.extraData) && !!this.extraData.length) || !!Object.keys(this.extraData).length) && this.extraData[index];
|
843
|
-
const extraActions = [
|
843
|
+
const extraActions = !isNativeFilePath(src) && [
|
844
844
|
{
|
845
845
|
icon: 'download',
|
846
|
-
isVisible: () => !isNativeFilePath(src),
|
847
846
|
handler: () => {
|
848
847
|
downloadFile(isMultipleData && this.extraData[index].stitch || src);
|
849
848
|
}
|
@@ -840,10 +840,9 @@ const YooFormCaptureComponent = class {
|
|
840
840
|
const imageData = this.getImageData(index);
|
841
841
|
const { drawings, src } = imageData;
|
842
842
|
const isMultipleData = isFinite(index) && this.extraData && ((isArray(this.extraData) && !!this.extraData.length) || !!Object.keys(this.extraData).length) && this.extraData[index];
|
843
|
-
const extraActions = [
|
843
|
+
const extraActions = !isNativeFilePath(src) && [
|
844
844
|
{
|
845
845
|
icon: 'download',
|
846
|
-
isVisible: () => !isNativeFilePath(src),
|
847
846
|
handler: () => {
|
848
847
|
downloadFile(isMultipleData && this.extraData[index].stitch || src);
|
849
848
|
}
|