dialog.troubleshooting.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <md-dialog aria-label="Troubleshooting" md-theme="{{ ctrl.theme }}">
  2. <form ng-cloak>
  3. <md-toolbar>
  4. <div class="md-toolbar-tools">
  5. <h2 translate>troubleshooting.TROUBLESHOOTING</h2>
  6. <span flex></span>
  7. <md-button class="md-icon-button" ng-click="ctrl.cancel()">
  8. <md-icon aria-label="Close dialog" class="material-icons md-24">close</md-icon>
  9. </md-button>
  10. </div>
  11. </md-toolbar>
  12. <md-dialog-content>
  13. <div class="md-dialog-content">
  14. <p translate>troubleshooting.REPORT_FAQ</p>
  15. <p translate>troubleshooting.REPORT_LOG</p>
  16. <p ng-if="!ctrl.isConnected" translate>troubleshooting.REPORT_VIA_THREEMA_UNAVAILABLE</p>
  17. <p ng-if="!ctrl.isConnected || ctrl.sendingFailed" translate>troubleshooting.REPORT_VIA_CLIPBOARD</p>
  18. <p>
  19. <md-input-container ng-if="ctrl.isConnected" class="md-block md-hide-errors-spacer">
  20. <label translate>troubleshooting.DESCRIBE_PROBLEM</label>
  21. <textarea ng-model="ctrl.description" rows="2" max-rows="10" md-select-on-focus></textarea>
  22. </md-input-container>
  23. </p>
  24. <p>
  25. <md-checkbox ng-model="ctrl.sanitize" aria-label="Remove sensitive data">
  26. <span translate>troubleshooting.REMOVE_SENSITIVE_DATA</span>
  27. </md-checkbox>
  28. </p>
  29. </div>
  30. </md-dialog-content>
  31. <md-dialog-actions layout="row">
  32. <span flex></span>
  33. <md-button role="button" class="md-primary" ng-click="ctrl.copyToClipboard()" aria-labelledby="aria-label-copy-log-clipboard">
  34. <span translate id="aria-label-copy-log-clipboard">troubleshooting.COPY_LOG_CLIPBOARD</span>
  35. </md-button>
  36. <md-button role="button" class="md-accent circular-progress-button" ng-click="ctrl.send()" ng-disabled="!ctrl.canSend" aria-labelledby="aria-label-report-via-threema">
  37. <md-progress-circular ng-if="ctrl.isSending" md-mode="indeterminate" md-diameter="20"></md-progress-circular>
  38. <span translate id="aria-label-report-via-threema">troubleshooting.REPORT_VIA_THREEMA</span>
  39. </md-button>
  40. <md-button role="button" class="md-primary" ng-click="ctrl.cancel()" aria-labelledby="aria-label-close">
  41. <span translate id="aria-label-close">common.CLOSE</span>
  42. </md-button>
  43. </md-dialog-actions>
  44. </form>
  45. </md-dialog>