summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/webui/resources/eligible-devices.html
blob: 5aaa15669f9a3123cf8bb17f7b19b350f08404a6 (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
<link href="chrome://resources/polymer/polymer/polymer.html" rel="import">
<link href="chrome://resources/polymer/paper-spinner/paper-spinner.html" rel="import">
<link rel="import" href="device-list.html">

<polymer-element name="eligible-devices" layout vertical>
  <template>
    <style>
      paper-spinner {
        margin-top: 40px;
      }
    </style>

    <paper-spinner
        hidden?="{{!requestInProgress_}}" self-center active>
    </paper-spinner>

    <device-list
        label="Eligible Phones" devices={{eligibleDevices_}}
        hidden?="{{eligibleDevices_.length == 0}}" cross-fade>
    </device-list>

    <device-list
        label="Ineligible Phones" devices={{ineligibleDevices_}}
        hidden?="{{ineligibleDevices_.length == 0}}" cross-fade>
    </device-list>
  </template>
  <script src="eligible-devices.js"></script>
</polymer-element>