Commit 8607f136 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Migrate OOBE Enrollment to polymer

Get rid of enterprise-card / enterprise-header, switch existing screens
to oobe-dialog.

This cl simplify existing code before migrating enrollment flow to polymer
completely.

Bug: 811556
Change-Id: I5035707ba57c4281a293a616225a8171a8e552dc
Reviewed-on: https://chromium-review.googlesource.com/1225698
Commit-Queue: Denis Kuznetsov <antrim@chromium.org>
Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591343}
parent 8d71f6f5
...@@ -21,13 +21,12 @@ ...@@ -21,13 +21,12 @@
<include src="oobe_buttons.html"> <include src="oobe_buttons.html">
<include src="oobe_change_picture.html"> <include src="oobe_change_picture.html">
<include src="oobe_dialog.html"> <include src="oobe_dialog.html">
<include src="oobe_enrollment.html">
<include src="oobe_reset.html"> <include src="oobe_reset.html">
<include src="oobe_reset_confirmation_overlay.html"> <include src="oobe_reset_confirmation_overlay.html">
<include src="oobe_voice_interaction_value_prop.html"> <include src="oobe_voice_interaction_value_prop.html">
<include src="oobe_wait_for_container_ready.html"> <include src="oobe_wait_for_container_ready.html">
<include src="encryption_migration.html"> <include src="encryption_migration.html">
<include src="enterprise_card.html">
<include src="enterprise_header.html">
<include src="enrollment_license_card.html"> <include src="enrollment_license_card.html">
<include src="sync_consent.html"> <include src="sync_consent.html">
<include src="fingerprint_setup.html"> <include src="fingerprint_setup.html">
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
// <include src="encryption_migration.js"> // <include src="encryption_migration.js">
// <include src="oobe_voice_interaction_value_prop.js"> // <include src="oobe_voice_interaction_value_prop.js">
// <include src="oobe_wait_for_container_ready.js"> // <include src="oobe_wait_for_container_ready.js">
// <include src="enterprise_card.js">
// <include src="enterprise_header.js">
// <include src="enrollment_license_card.js"> // <include src="enrollment_license_card.js">
// <include src="sync_consent.js"> // <include src="sync_consent.js">
// <include src="fingerprint_setup.js"> // <include src="fingerprint_setup.js">
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<include src="oobe_buttons.html"> <include src="oobe_buttons.html">
<include src="oobe_change_picture.html"> <include src="oobe_change_picture.html">
<include src="oobe_dialog.html"> <include src="oobe_dialog.html">
<include src="oobe_enrollment.html">
<include src="oobe_eula.html"> <include src="oobe_eula.html">
<include src="oobe_hid_detection.html"> <include src="oobe_hid_detection.html">
<include src="oobe_reset.html"> <include src="oobe_reset.html">
...@@ -35,8 +36,6 @@ ...@@ -35,8 +36,6 @@
<include src="offline_ad_login.html"> <include src="offline_ad_login.html">
<include src="active_directory_password_change.html"> <include src="active_directory_password_change.html">
<include src="arc_terms_of_service.html"> <include src="arc_terms_of_service.html">
<include src="enterprise_card.html">
<include src="enterprise_header.html">
<include src="enrollment_license_card.html"> <include src="enrollment_license_card.html">
<include src="sync_consent.html"> <include src="sync_consent.html">
<include src="fingerprint_setup.html"> <include src="fingerprint_setup.html">
......
...@@ -45,8 +45,6 @@ ...@@ -45,8 +45,6 @@
// <include src="arc_terms_of_service.js"> // <include src="arc_terms_of_service.js">
// <include src="oobe_voice_interaction_value_prop.js"> // <include src="oobe_voice_interaction_value_prop.js">
// <include src="oobe_wait_for_container_ready.js"> // <include src="oobe_wait_for_container_ready.js">
// <include src="enterprise_card.js">
// <include src="enterprise_header.js">
// <include src="enrollment_license_card.js"> // <include src="enrollment_license_card.js">
// <include src="sync_consent.js"> // <include src="sync_consent.js">
// <include src="fingerprint_setup.js"> // <include src="fingerprint_setup.js">
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://oobe/custom_elements.html">
<link rel="import" href="chrome://resources/cr_elements/cr_radio_button/cr_radio_button.html"> <link rel="import" href="chrome://resources/cr_elements/cr_radio_button/cr_radio_button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group.html">
<!-- <!--
UI for the Enrollment license type selection. UI for the Enrollment license type selection.
...@@ -25,22 +25,20 @@ ...@@ -25,22 +25,20 @@
<dom-module id="enrollment-license-card"> <dom-module id="enrollment-license-card">
<template> <template>
<link rel="stylesheet" href="gaia_input_form.css"> <link rel="stylesheet" href="gaia_input_form.css">
<link rel="stylesheet" href="enterprise_card.css">
<link rel="stylesheet" href="enterprise_card_footer.css">
<link rel="stylesheet" href="enrollment_license_card.css"> <link rel="stylesheet" href="enrollment_license_card.css">
<style
include="shared-style iron-flex iron-flex-alignment iron-positioning">
</style>
<enterprise-card id="license-selection-prompt-card" class="fit"> <oobe-dialog id="license-selection-prompt-card" has-buttons>
<enterprise-header slot="header" <hd-iron-icon slot="oobe-icon"
i18n-values="header-title:oauthEnrollScreenTitle"> icon1x="oobe-enrollment-32:briefcase"
<hd-iron-icon slot="enterprise-icon" icon2x="oobe-enrollment-64:briefcase"></hd-iron-icon>
icon1x="enterprise-header-32:briefcase" <h1 slot="title" i18n-content="oauthEnrollScreenTitle"></h1>
icon2x="enterprise-header-64:briefcase"></hd-iron-icon> <div slot="subtitle">
<div slot="header-comment" class="header-comment">
[[i18nDynamic(locale, 'licenseSelectionCardExplanation')]] [[i18nDynamic(locale, 'licenseSelectionCardExplanation')]]
</div> </div>
</enterprise-header> <div slot="footer" class="flex layout vertical justified">
<div slot="content" class="content flex vertical layout justified">
<div>
<paper-radio-group selected="{{selected}}" <paper-radio-group selected="{{selected}}"
selectable="cr-radio-button"> selectable="cr-radio-button">
<template is="dom-repeat" items="[[licenses]]" <template is="dom-repeat" items="[[licenses]]"
...@@ -53,15 +51,10 @@ ...@@ -53,15 +51,10 @@
</template> </template>
</paper-radio-group> </paper-radio-group>
</div> </div>
<div slot="bottom-buttons" class="flex layout horizontal end-justified">
<oobe-next-button disabled="[[disabled]]" on-tap="buttonClicked_"
class="focus-on-show"></oobe-next-button>
</div> </div>
<div slot="footer" class="footer"> </oobe-dialog>
<div class="horizontal-reverse justified layout center">
<oobe-next-button disabled="[[disabled]]"
on-tap="buttonClicked_"
id="submitButton" class="self-start">
</oobe-next-button>
</div>
</div>
</enterprise-card>
</template> </template>
</dom-module> </dom-module>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
Polymer({ Polymer({
is: 'enrollment-license-card', is: 'enrollment-license-card',
behaviors: [I18nBehavior], behaviors: [I18nBehavior, OobeDialogHostBehavior],
properties: { properties: {
/** /**
...@@ -49,8 +49,12 @@ Polymer({ ...@@ -49,8 +49,12 @@ Polymer({
}, },
}, },
get submitButton() { show: function() {
return this.$.submitButton; this.behaviors.forEach((behavior) => {
if (behavior.onBeforeShow)
behavior.onBeforeShow.call(this);
});
this.$['license-selection-prompt-card'].show();
}, },
buttonClicked_: function() { buttonClicked_: function() {
......
/* Copyright 2018 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
:host {
display: flex;
flex-direction: column;
height: 100%;
position: relative;
width: 100%;
}
.enterprise-header {
background-color: white;
}
.enterprise-footer {
background-color: white;
}
:host(:not(.disabled)) :host(:not(.no-footer)) {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.17);
/* z-index is needed to make shadow visible. */
z-index: 1;
}
.header-container {
padding: 64px 64px 0 64px;
}
.header-comment {
color: #333;
font-size: 13px;
line-height: 20px;
min-height: 40px;
}
.content-container {
padding: 0 64px 0 64px;
z-index: 1;
}
.footer-container {
height: 44px;
padding: 18px;
}
.overlay {
background-color: rgba(0, 0, 0, 0.5);
display: none;
height: 100%;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 11;
}
paper-progress#progress-bar {
--paper-progress-active-color: var(--google-blue-500);
--paper-progress-container-color: var(--google-blue-100);
display: none;
height: 3px;
padding-top: 16px;
width: 100%;
}
:host(.full-disabled) #full-overlay,
:host(.disabled) #actionable-overlay,
:host(.disabled) #progress-bar,
:host(.with-progress) #progress-bar {
display: block;
}
<!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-progress.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html">
<!--
Simple Gaia v2 looking card which should be used for local OOBE UI elements
that look like Gaia v2 card (large white dialog with buttons in footer).
This is usually used in Enterprise Enrollment flow.
Example:
<enterprise-card>
<enterprise-header class="header" icon="enterprise"
i18n-values="header-title:...;
header-comment:...">
</enterprise-header >
<div class="content">
...
</div
<div class="footer">
<oobe-next-button class="autofocus main-button"> /
<gaia-button> / <oobe-back-button>
</div>
</enterprise-card>
Add class |header| to all which you want to go inside header. Similar
with classes |content| and |footer|.
-->
<dom-module id="enterprise-card">
<template>
<link rel="stylesheet" href="enterprise_card.css">
<link rel="stylesheet" href="oobe_flex_layout.css">
<div class="enterprise-header vertical layout justified layout-start">
<div class="header-container flex vertical layout relative">
<slot name="header"></slot>
</div>
<paper-progress class="self-end" id="progress-bar" indeterminate>
</paper-progress>
</div>
<div class="flex vertical layout">
<div class="content-container flex vertical layout">
<slot name="content"></slot>
</div>
<div class="footer-container horizontal layout center"
hidden="[[noFooter]]">
<slot name="footer"></slot>
</div>
<div id="actionable-overlay" class="overlay"></div>
</div>
<div id="full-overlay" class="overlay"></div>
</template>
</dom-module>
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer({
is: 'enterprise-card',
properties: {
/**
* Control visibility of the footer container.
*/
noFooter: {
type: Boolean,
value: false,
},
},
/** @override */
focus: function() {
if (this.autofocus) {
this.autofocus.focus();
}
},
/** @override */
ready: function() {
this.autofocus = this.querySelector('.autofocus');
},
});
/* Copyright 2015 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
:host {
display: flex;
flex-direction: column;
position: relative;
}
.header-title {
color: #333;
display: flex;
flex-direction: column-reverse;
font-size: 28px;
height: 64px;
}
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer({
is: 'enterprise-header',
behaviors: [I18nBehavior],
properties: {
/**
* Title of the header
* @type {String}
*/
headerTitle: {type: String, value: ''},
},
});
...@@ -47,6 +47,13 @@ ...@@ -47,6 +47,13 @@
+ var(--subtitle-font-distance-to-baseline)) 0 0 0; + var(--subtitle-font-distance-to-baseline)) 0 0 0;
} }
#oobe-progress ::slotted(paper-progress) {
--paper-progress-active-color: var(--google-blue-500);
--paper-progress-container-color: var(--google-blue-100);
height: 3px;
width: 100%;
}
#footer-container { #footer-container {
padding: 0 64px; padding: 0 64px;
} }
......
...@@ -67,6 +67,9 @@ ...@@ -67,6 +67,9 @@
<div id="oobe-subtitle" class="layout vertical"> <div id="oobe-subtitle" class="layout vertical">
<slot name="subtitle"></slot> <slot name="subtitle"></slot>
</div> </div>
<div id="oobe-progress" class="layout vertical">
<slot name="progress"></slot>
</div>
</div> </div>
<div id="footer-container" noFooterPadding$="[[noFooterPadding]]" <div id="footer-container" noFooterPadding$="[[noFooterPadding]]"
class="flex layout vertical"> class="flex layout vertical">
......
<!-- Copyright 2015 The Chromium Authors. All rights reserved. <!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. --> found in the LICENSE file. -->
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html">
<!-- Icons to use in enterprise-header --> <!-- Icons to use during enterprise enrollment -->
<iron-iconset-svg name="enterprise-header-32" size="32"> <iron-iconset-svg name="oobe-enrollment-32" size="32">
<svg> <svg>
<defs> <defs>
<g id="briefcase" fill="none" fill-rule="evenodd"> <g id="briefcase" fill="none" fill-rule="evenodd">
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</svg> </svg>
</iron-iconset-svg> </iron-iconset-svg>
<iron-iconset-svg name="enterprise-header-64" size="64"> <iron-iconset-svg name="oobe-enrollment-64" size="64">
<svg> <svg>
<defs> <defs>
<g id="briefcase" fill="none" fill-rule="evenodd"> <g id="briefcase" fill="none" fill-rule="evenodd">
...@@ -32,24 +32,3 @@ ...@@ -32,24 +32,3 @@
</defs> </defs>
</svg> </svg>
</iron-iconset-svg> </iron-iconset-svg>
<!--
Header for enterprise-card.
-->
<dom-module id="enterprise-header">
<link rel="stylesheet" href="enterprise_header.css">
<link rel="stylesheet" href="oobe_flex_layout.css">
<template>
<div class="flex vertical layout start start-justified">
<div id="icon-container" class="vertical layout center">
<slot name="enterprise-icon"></slot>
</div>
<div class="header-title" hidden$="{{!headerTitle}}">
<span>[[headerTitle]]</span>
</div>
<slot name="header-comment"></slot>
</div>
</template>
</dom-module>
...@@ -127,3 +127,4 @@ ...@@ -127,3 +127,4 @@
#oauth-enrollment.saml #oauth-enroll-navigation { #oauth-enrollment.saml #oauth-enroll-navigation {
color: rgba(0, 0, 0, .54); color: rgba(0, 0, 0, .54);
} }
...@@ -5,13 +5,11 @@ ...@@ -5,13 +5,11 @@
<link rel="import" href="chrome://oobe/custom_elements.html"> <link rel="import" href="chrome://oobe/custom_elements.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="stylesheet" href="enterprise_card.css">
<link rel="stylesheet" href="gaia_card_parameters.css"> <link rel="stylesheet" href="gaia_card_parameters.css">
<div id="oauth-enrollment" class="step no-logo hidden" hidden> <div id="oauth-enrollment" class="step no-logo hidden" hidden>
<div id="oauth-enroll-step-contents"> <div id="oauth-enroll-step-contents">
<link rel="stylesheet" href="oobe_flex_layout.css"> <link rel="stylesheet" href="oobe_flex_layout.css">
<link rel="stylesheet" href="enterprise_card_footer.css">
<div id="oauth-enroll-step-signin"> <div id="oauth-enroll-step-signin">
<oobe-dialog class="gaia-dialog" role="dialog" id="enrollment-gaia-dialog" <oobe-dialog class="gaia-dialog" role="dialog" id="enrollment-gaia-dialog"
has-buttons no-header no-footer-padding> has-buttons no-header no-footer-padding>
...@@ -21,26 +19,24 @@ ...@@ -21,26 +19,24 @@
</div> </div>
<div slot="bottom-buttons" class="flex layout horizontal center"> <div slot="bottom-buttons" class="flex layout horizontal center">
<oobe-back-button id="oobe-signin-back-button"></oobe-back-button> <oobe-back-button id="oobe-signin-back-button"></oobe-back-button>
<div class="flex">
</div>
</div> </div>
</oobe-dialog> </oobe-dialog>
</div> </div>
<div id="oauth-enroll-step-working"> <div id="oauth-enroll-step-working">
<enterprise-card id="oauth-enroll-working" <oobe-dialog id="oauth-enroll-working">
class="with-progress" no-footer> <hd-iron-icon slot="oobe-icon"
<enterprise-header slot="header" icon1x="oobe-enrollment-32:briefcase"
i18n-values="header-title:oauthEnrollScreenTitle;"> icon2x="oobe-enrollment-64:briefcase"></hd-iron-icon>
<hd-iron-icon slot="enterprise-icon" <h1 slot="title" i18n-content="oauthEnrollScreenTitle"></h1>
icon1x="enterprise-header-32:briefcase" <paper-progress slot="progress" indeterminate>
icon2x="enterprise-header-64:briefcase"></hd-iron-icon> </paper-progress>
</enterprise-header >
<div slot="content" class="layout vertical start"> <div slot="footer" class="flex layout vertical">
<div class="oauth-enroll-step-message"> <div class="oauth-enroll-step-message">
<span i18n-content="oauthEnrollWorking"></span> <span i18n-content="oauthEnrollWorking"></span>
</div> </div>
</div> </div>
</enterprise-card> </oobe-dialog>
</div> </div>
<div id="oauth-enroll-step-license"> <div id="oauth-enroll-step-license">
<enrollment-license-card id="oauth-enroll-license-ui" <enrollment-license-card id="oauth-enroll-license-ui"
...@@ -60,66 +56,56 @@ ...@@ -60,66 +56,56 @@
</notification-card> </notification-card>
</div> </div>
<div id="oauth-enroll-step-success" role="alert"> <div id="oauth-enroll-step-success" role="alert">
<enterprise-card id="oauth-enroll-success-card"> <oobe-dialog id="oauth-enroll-success-card" has-buttons>
<enterprise-header slot="header" <hd-iron-icon slot="oobe-icon"
i18n-values="header-title:oauthEnrollSuccessTitle"> icon1x="oobe-enrollment-32:briefcase"
<hd-iron-icon slot="enterprise-icon" icon2x="oobe-enrollment-64:briefcase"></hd-iron-icon>
icon1x="enterprise-header-32:briefcase" <h1 slot="title" i18n-content="oauthEnrollSuccessTitle"></h1>
icon2x="enterprise-header-64:briefcase"></hd-iron-icon> <div slot="subtitle" i18n-content="oauthEnrollSuccess"></div>
<div slot="header-comment" class="header-comment" <div slot="footer" class="flex layout vertical center end-justified">
i18n-content="oauthEnrollSuccess">
</div>
</enterprise-header >
<div slot="content" class="layout vertical center">
<img srcset="images/enrollment_success_illustration_1x.png 1x, <img srcset="images/enrollment_success_illustration_1x.png 1x,
images/enrollment_success_illustration_2x.png 2x" images/enrollment_success_illustration_2x.png 2x"
i18n-values="alt:enrollmentSuccessIllustrationTitle"> i18n-values="alt:enrollmentSuccessIllustrationTitle">
</div> </div>
<div slot="footer" <div slot="bottom-buttons" class="layout horizontal end-justified">
class="footer horizontal-reverse justified layout center"> <oobe-text-button inverse id="enroll-success-done-button"
<gaia-button i18n-content="oauthEnrollDone" class="focus-on-show">
id="enroll-success-done-button" class="autofocus"></gaia-button> <div i18n-content="oauthEnrollDone"></div>
</oobe-text-button>
</div> </div>
</enterprise-card> </oobe-dialog>
</div> </div>
<div id="oauth-enroll-step-abe-success" role="alert"> <div id="oauth-enroll-step-abe-success" role="alert">
<enterprise-card id="oauth-enroll-abe-success-card"> <oobe-dialog id="oauth-enroll-abe-success-card" has-buttons>
<enterprise-header slot="header" <hd-iron-icon slot="oobe-icon"
i18n-values="header-title:oauthEnrollSuccessTitle"> icon1x="oobe-enrollment-32:briefcase"
<hd-iron-icon slot="enterprise-icon" icon2x="oobe-enrollment-64:briefcase"></hd-iron-icon>
icon1x="enterprise-header-32:briefcase" <h1 slot="title" i18n-content="oauthEnrollSuccessTitle"></h1>
icon2x="enterprise-header-64:briefcase"></hd-iron-icon> <div slot="subtitle" id="oauth-enroll-abe-success-comment-no-domain"
<div slot="header-comment" class="header-comment"
id="oauth-enroll-abe-success-comment-no-domain"
i18n-content="oauthEnrollSuccess"></div> i18n-content="oauthEnrollSuccess"></div>
<div slot="header-comment" class="header-comment" <div slot="subtitle" id="oauth-enroll-abe-success-comment-domain"
id="oauth-enroll-abe-success-comment-domain" hidden></div> hidden></div>
</enterprise-header > <div slot="footer" class="flex layout vertical center end-justified">
<div slot="content" class="layout vertical center">
<img srcset="images/enrollment_success_illustration_1x.png 1x, <img srcset="images/enrollment_success_illustration_1x.png 1x,
images/enrollment_success_illustration_2x.png 2x" images/enrollment_success_illustration_2x.png 2x"
i18n-values="alt:enrollmentSuccessIllustrationTitle"> i18n-values="alt:enrollmentSuccessIllustrationTitle">
</div> </div>
<div slot="footer" <div slot="bottom-buttons" class="layout horizontal end-justified">
class="footer horizontal-reverse justified layout center"> <oobe-text-button inverse id="enroll-success-abe-done-button"
<gaia-button i18n-content="oauthEnrollDone" class="focus-on-show">
id="enroll-success-abe-done-button" <div i18n-content="oauthEnrollDone"></div>
class="autofocus"></gaia-button> </oobe-text-button>
</div> </div>
</enterprise-card> </oobe-dialog>
</div> </div>
<div id="oauth-enroll-step-attribute-prompt"> <div id="oauth-enroll-step-attribute-prompt">
<enterprise-card id="oauth-enroll-attribute-prompt-card"> <oobe-dialog id="oauth-enroll-attribute-prompt-card" has-buttons>
<enterprise-header slot="header" <hd-iron-icon slot="oobe-icon"
i18n-values="header-title:oauthEnrollScreenTitle"> icon1x="oobe-enrollment-32:briefcase"
<hd-iron-icon slot="enterprise-icon" icon2x="oobe-enrollment-64:briefcase"></hd-iron-icon>
icon1x="enterprise-header-32:briefcase" <h1 slot="title" i18n-content="oauthEnrollScreenTitle"></h1>
icon2x="enterprise-header-64:briefcase"></hd-iron-icon> <div slot="subtitle" i18n-content="oauthEnrollDeviceInformation"></div>
<div slot="header-comment" class="header-comment" <div slot="footer" class="layout vertical start">
i18n-content="oauthEnrollDeviceInformation">
</div>
</enterprise-header >
<div slot="content" class="layout vertical start">
<div class="oauth-enroll-step-message"> <div class="oauth-enroll-step-message">
<span id="oauth-enroll-attribute-prompt-message" <span id="oauth-enroll-attribute-prompt-message"
i18n-content="oauthEnrollAttributeExplanation"></span> i18n-content="oauthEnrollAttributeExplanation"></span>
...@@ -128,7 +114,7 @@ ...@@ -128,7 +114,7 @@
i18n-content="oauthEnrollExplainAttributeLink"></a> i18n-content="oauthEnrollExplainAttributeLink"></a>
</div> </div>
<gaia-input id="oauth-enroll-asset-id" type="text" <gaia-input id="oauth-enroll-asset-id" type="text"
class="autofocus"> class="focus-on-show">
<div slot="label" i18n-content="oauthEnrollAssetIdLabel"> <div slot="label" i18n-content="oauthEnrollAssetIdLabel">
</div> </div>
</gaia-input> </gaia-input>
...@@ -137,14 +123,15 @@ ...@@ -137,14 +123,15 @@
</div> </div>
</gaia-input> </gaia-input>
</div> </div>
<div slot="footer" class="footer"> <div slot="bottom-buttons" class="layout horizontal end-justified">
<oobe-text-button id="enroll-attributes-skip-button">
<div i18n-content="oauthEnrollSkip"></div>
</oobe-text-button>
<div class="flex"></div>
<oobe-next-button <oobe-next-button
id="enroll-attributes-submit-button"></oobe-next-button> id="enroll-attributes-submit-button"></oobe-next-button>
<oobe-text-button
id="enroll-attributes-skip-button"
i18n-content="oauthEnrollSkip"></oobe-text-button>
</div> </div>
</enterprise-card> </oobe-dialog>
</div> </div>
<div id="oauth-enroll-step-attribute-prompt-error"> <div id="oauth-enroll-step-attribute-prompt-error">
<notification-card id="oauth-enroll-attribute-prompt-error-card" <notification-card id="oauth-enroll-attribute-prompt-error-card"
......
...@@ -387,15 +387,15 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() { ...@@ -387,15 +387,15 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
if (step == STEP_SIGNIN) { if (step == STEP_SIGNIN) {
$('oauth-enroll-auth-view').focus(); $('oauth-enroll-auth-view').focus();
} else if (step == STEP_LICENSE_TYPE) { } else if (step == STEP_LICENSE_TYPE) {
$('oauth-enroll-license-ui').submitButton.focus(); $('oauth-enroll-license-ui').show();
} else if (step == STEP_ERROR) { } else if (step == STEP_ERROR) {
$('oauth-enroll-error-card').submitButton.focus(); $('oauth-enroll-error-card').submitButton.focus();
} else if (step == STEP_SUCCESS) { } else if (step == STEP_SUCCESS) {
$('oauth-enroll-success-card').focus(); $('oauth-enroll-success-card').show();
} else if (step == STEP_ABE_SUCCESS) { } else if (step == STEP_ABE_SUCCESS) {
$('oauth-enroll-abe-success-card').focus(); $('oauth-enroll-abe-success-card').show();
} else if (step == STEP_ATTRIBUTE_PROMPT) { } else if (step == STEP_ATTRIBUTE_PROMPT) {
$('oauth-enroll-step-attribute-prompt').focus(); $('oauth-enroll-attribute-prompt-card').show();
} else if (step == STEP_ATTRIBUTE_PROMPT_ERROR) { } else if (step == STEP_ATTRIBUTE_PROMPT_ERROR) {
$('oauth-enroll-attribute-prompt-error-card').submitButton.focus(); $('oauth-enroll-attribute-prompt-error-card').submitButton.focus();
} else if (step == STEP_ACTIVE_DIRECTORY_JOIN_ERROR) { } else if (step == STEP_ACTIVE_DIRECTORY_JOIN_ERROR) {
......
...@@ -26,11 +26,3 @@ ...@@ -26,11 +26,3 @@
.update-illustration { .update-illustration {
padding-bottom: 82px; padding-bottom: 82px;
} }
paper-progress {
--paper-progress-active-color: var(--google-blue-500);
--paper-progress-secondary-color: var(--google-blue-100);
bottom: 0;
height: 3px;
width: 100%;
}
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
<div slot="subtitle" class="update-subtitle" id="checkingForUpdateCancelHint" <div slot="subtitle" class="update-subtitle" id="checkingForUpdateCancelHint"
i18n-content="cancelUpdateHint" hidden="[[!cancelAllowed]]"> i18n-content="cancelUpdateHint" hidden="[[!cancelAllowed]]">
</div> </div>
<div slot="footer" class="flex layout vertical"> <paper-progress slot="progress" id="checking-progress"
<paper-progress id="checking-progress" hidden="[[!checkingForUpdate]]"> hidden="[[!checkingForUpdate]]">
</paper-progress> </paper-progress>
<div class="flex"></div> <div slot="footer" class="flex layout vertical end-justified">
<img class="update-illustration" <img class="update-illustration"
srcset="images/1x/updating_1x.png 1x, srcset="images/1x/updating_1x.png 1x,
images/2x/updating_2x.png 2x"> images/2x/updating_2x.png 2x">
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
</div> </div>
<div slot="subtitle" class="update-subtitle" i18n-content="updateCompeletedMsg" <div slot="subtitle" class="update-subtitle" i18n-content="updateCompeletedMsg"
hidden="[[!updateCompleted]]"></div> hidden="[[!updateCompleted]]"></div>
<div slot="footer" class="flex layout vertical"> <paper-progress slot="progress" min="0" max="100"
<paper-progress min="0" max="100" value="[[progressValue]]" value="[[progressValue]]" hidden="[[updateCompleted]]">
hidden="[[updateCompleted]]">
</paper-progress> </paper-progress>
<div slot="footer" class="flex layout vertical">
<div id="estimated-time-left" class="progress-message text" <div id="estimated-time-left" class="progress-message text"
hidden="[[isNotAllowedOrUpdateCompleted_(estimatedTimeLeftShown, hidden="[[isNotAllowedOrUpdateCompleted_(estimatedTimeLeftShown,
updateCompleted)]]"> updateCompleted)]]">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment