Skip to content

Commit

Permalink
SMB Shares WebUI: replace paper-button with cr-button
Browse files Browse the repository at this point in the history
Bug: 967793
Change-Id: I0e37abc64cd4f0a8d95aa6c1ea6b9d15b0b9cb75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1656130
Reviewed-by: Hector Carmona <hcarmona@chromium.org>
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668586}
  • Loading branch information
Esmael El-Moslimany authored and Commit Bot committed Jun 12, 2019
1 parent d7e4d94 commit 4242ce7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<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/cr_input/cr_input.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/cr_components/chromeos/smb_shares/smb_browser_proxy.html">

<dom-module id="smb-credentials-dialog">
<template>
<style paper-button-style>
<style>
cr-dialog {
--cr-dialog-native: {
border-radius: 0;
Expand All @@ -36,13 +35,13 @@
</cr-input>
</div>
<div slot="button-container">
<paper-button class="cancel-button" on-click="onCancelButtonTap_">
[[i18n('cancel')]]
</paper-button>
<paper-button class="action-button" on-click="onSaveButtonTap_"
disabled="[[!username_]]">
[[i18n('save')]]
</paper-button>
<cr-button class="cancel-button" on-click="onCancelButtonClick_">
[[i18n('cancel')]]
</cr-button>
<cr-button class="action-button" on-click="onSaveButtonClick_"
disabled="[[!username_]]">
[[i18n('save')]]
</cr-button>
</div>
</cr-dialog>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ Polymer({
},

/** @private */
onCancelButtonTap_: function() {
onCancelButtonClick_: function() {
chrome.send('dialogClose');
},

/** @private */
onSaveButtonTap_: function() {
onSaveButtonClick_: function() {
this.browserProxy_.updateCredentials(
this.mountId_, this.username_, this.password_);
chrome.send('dialogClose');
Expand Down

0 comments on commit 4242ce7

Please sign in to comment.