Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1285)

Unified Diff: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html

Issue 2901933002: [CUPS] Re-enable the button to switch to auto-discovery dialog. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html
diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html
index da1340a256a1f6840857a7e28172da683bd5b375..93e6e6b6820c467d35fa29b619f553e1d9b749da 100644
--- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html
+++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html
@@ -142,6 +142,12 @@
background-color: var(--paper-green-100);
padding: 10px 20px;
}
+
+ .dialog-buttons {
+ display: flex;
+ justify-content: space-between;
+ width: 100%;
+ }
</style>
<add-printer-dialog>
<div class="dialog-title">$i18n{addPrintersManuallyTitle}</div>
@@ -211,14 +217,23 @@
</div>
</div>
<div class="dialog-buttons">
- <paper-button class="cancel-button secondary-button"
- on-tap="onCancelTap_">
- $i18n{cancelButtonText}
- </paper-button>
- <paper-button class="action-button" on-tap="switchToManufacturerDialog_"
- disabled="[[!newPrinter.printerName]]">
- $i18n{addPrinterButtonText}
- </paper-button>
+ <div> <!-- Left group -->
+ <paper-button class="secondary-button"
+ on-tap="switchToDiscoveryDialog_">
+ $i18n{discoverPrintersButtonText}
+ </paper-button>
+ </div>
+ <div> <!-- Right group -->
+ <paper-button class="cancel-button secondary-button"
+ on-tap="onCancelTap_">
+ $i18n{cancelButtonText}
+ </paper-button>
+ <paper-button class="action-button"
+ on-tap="switchToManufacturerDialog_"
+ disabled="[[!newPrinter.printerName]]">
+ $i18n{addPrinterButtonText}
+ </paper-button>
+ </div>
</div>
</add-printer-dialog>
</template>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698