Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-337

Allow to preview the main file even if there is no thumbnail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: iOS 1.9, Android 1.6
    • Component/s: None

      Description

      Currently, if no thumbnail can be loaded from the server, there is no way to tap and preview the main file, even if it exists.

      Possible patch:

      diff --git a/src/components/app/DocumentView.js b/src/components/app/DocumentView.js
      index 9aede81..04b202f 100644
      --- a/src/components/app/DocumentView.js
      +++ b/src/components/app/DocumentView.js
      @@ -128,11 +128,7 @@ class DocumentView extends Component {
             this._computeIconComponent()
           );
       
      -    return this.state.errorLoadingThumbnail ? (
      -      <View>
      -        {image}
      -      </View>
      -    ) : (
      +    return (
             <TouchableOpacity onPress={() => Actions.documentPreview({ document: doc })}>
               {image}
             </TouchableOpacity>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: