summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/extensions/load_error.html
blob: 682b4fbcdf9b15505e8b6ffcaea9adc18bd68e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner-lite.html">
<link rel="import" href="code_section.html">

<dom-module id="extensions-load-error">
  <template>
    <style include="cr-shared-style">
      .description-row {
        display: flex;
      }

      .row-label {
        display: block;
        width: 104px;  /* Magic number from the specs. */
      }

      paper-spinner-lite {
        margin-inline-end: 8px;
      }
    </style>
    <cr-dialog id="dialog" close-text="$i18n{close}">
      <div slot="title">$i18n{loadErrorHeading}</div>
      <div slot="body">
        <div id="info">
          <div id="file" class="description-row">
            <span class="row-label">$i18n{loadErrorFileLabel}</span>
            <span class="row-value">[[loadError.path]]</span>
          </div>
          <div id="error" class="description-row">
            <span class="row-label">$i18n{loadErrorErrorLabel}</span>
            <span class="row-value">[[loadError.error]]</span>
          </div>
        </div>
        <extensions-code-section id="code"
            could-not-display-code="$i18n{loadErrorCouldNotLoadManifest}">
        </extensions-code-section>
      </div>
      <div slot="button-container">
        <paper-spinner-lite active="[[retrying_]]"></paper-spinner-lite>
        <cr-button class="cancel-button" on-click="close">
          $i18n{cancel}
        </cr-button>
        <cr-button class="action-button" disabled="[[retrying_]]"
            on-click="onRetryTap_">
          $i18n{loadErrorRetry}
        </cr-button>
      </div>
    </cr-dialog>
  </template>
  <script src="load_error.js"></script>
</dom-module>