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

Issue 1752633002: MD Settings: disable the On Startup "OK" button with no site content (Closed)

Created:
4 years, 9 months ago by Dan Beam
Modified:
4 years, 9 months ago
Reviewers:
dschuyler
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: disable the On Startup "OK" button with no site content We should not be asking the user to tap a "DO THIS!" button when it would have no effect. Instead, mark the button [disabled] (and style it so that it's clear tapping it has no effect) until there's content in URL input to add an On Startup page. R=dschuyler@chromium.org BUG=531750 Committed: https://crrev.com/c6bc4b5f4c626290eb3a0a884bbb0ccdcd407d88 Cr-Commit-Position: refs/heads/master@{#379066}

Patch Set 1 : disabled #

Total comments: 2

Patch Set 2 : trim() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -7 lines) Patch
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.js View 1 3 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
dschuyler
https://codereview.chromium.org/1752633002/diff/40001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js File chrome/browser/resources/settings/on_startup_page/startup_urls_page.js (right): https://codereview.chromium.org/1752633002/diff/40001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js#newcode92 chrome/browser/resources/settings/on_startup_page/startup_urls_page.js:92: return this.newUrl_.length > 0; Can we re-add the trim() ...
4 years, 9 months ago (2016-03-01 03:15:53 UTC) #2
Dan Beam
https://codereview.chromium.org/1752633002/diff/40001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js File chrome/browser/resources/settings/on_startup_page/startup_urls_page.js (right): https://codereview.chromium.org/1752633002/diff/40001/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js#newcode92 chrome/browser/resources/settings/on_startup_page/startup_urls_page.js:92: return this.newUrl_.length > 0; On 2016/03/01 03:15:52, dschuyler wrote: ...
4 years, 9 months ago (2016-03-02 19:56:42 UTC) #5
dschuyler
lgtm
4 years, 9 months ago (2016-03-02 20:05:03 UTC) #6
Dan Beam
i will add tests soon or when we add real validation
4 years, 9 months ago (2016-03-03 19:15:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752633002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752633002/80001
4 years, 9 months ago (2016-03-03 19:16:04 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 9 months ago (2016-03-03 20:05:57 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 20:07:46 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c6bc4b5f4c626290eb3a0a884bbb0ccdcd407d88
Cr-Commit-Position: refs/heads/master@{#379066}

Powered by Google App Engine
This is Rietveld 408576698