Move SMB share error toast to dialog
This change moves the error toast to the dialog when mounting an SMB share. Previously the flow was: - Click add mount - Dialog closes to SMB Shares parent page - Error/success string is displayed on parent page Now the flow will be: - Click add mount - Dialog stays open but add button becomes disabled - Error/success string is displayed on dialog itself An added advantage of this change is that it improves user experience as it is easier for users to debug error cases when the dialog is still open and they can still see the information they entered. Bug: chromium:887135 Test: browser_tests --gtest_filter=CrSettingsSmb* Change-Id: I6f68cd71a0002372a45975b3d8602809b36a6754 Reviewed-on: https://chromium-review.googlesource.com/c/1316664 Commit-Queue: Bailey Berro <baileyberro@chromium.org> Reviewed-by:Scott Chen <scottchen@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#611336}
Showing
Please register or sign in to comment