Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Add a confirmation dialog for "Close Other Tabs" contextual menu action. #1382

Closed
bradleyrichter opened this issue Apr 15, 2016 · 6 comments
Closed
Labels
feature/tabsbar open-in-brave-core priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). usability wontfix

Comments

@bradleyrichter
Copy link
Contributor

This action is not undoable and can be triggered accidentally.

@bbondy
Copy link
Member

bbondy commented Apr 15, 2016

Users can undo closed tabs, I think a dialog would be a tad annoying here. One other data point is that there is no confirmation in Chrome.

@bradleyrichter
Copy link
Contributor Author

It would be useful if you had more then 20 that would be closed all at once. And a data point - we are better than chrome. : )

But anyway, low priority since you can reopen them one at a time.

@bbondy
Copy link
Member

bbondy commented Apr 15, 2016

Yep agreed low priority and as long as it gives an option to not show anymore, all good with me. Thanks.

@bradleyrichter bradleyrichter changed the title Ad confirmation dialog for "Close Other Tabs" contextual menu action. Add a confirmation dialog for "Close Other Tabs" contextual menu action. Apr 21, 2016
@luixxiul
Copy link
Contributor

luixxiul commented May 29, 2016

I'm trying like this:

  items.push({
    label: locale.translation('closeOtherTabs'),
    click: (item, focusedWindow) => {
      if (focusedWindow) {
        if (confirm(locale.translation('confirmcloseOtherTabs'))) {
          focusedWindow.webContents.send(messages.SHORTCUT_CLOSE_OTHER_FRAMES, tabKey, true, true)
        }
      }
    }

This surely works on Ubuntu, displaying a pop-up, but I'm getting this one to commit:

  /home/test/browser-laptop/js/contextMenus.js:412:13: 'confirm' is not defined.

Do I have to define 'confirm'? If so would you please tell me how to?

@bbondy
Copy link
Member

bbondy commented May 29, 2016

@luixxiul luixxiul added this to the contributor backlog milestone Nov 29, 2016
@luixxiul luixxiul assigned luixxiul and unassigned luixxiul Nov 29, 2016
@luixxiul luixxiul removed this from the contributor backlog milestone Apr 30, 2017
@bsclifton bsclifton added feature/tabsbar priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). usability and removed enhancement labels Nov 22, 2017
@bsclifton bsclifton added this to the Backlog (Prioritized) milestone Nov 22, 2017
@NejcZdovc NejcZdovc added the help wanted The PR/issue opener needs help to complete/report the task. label May 7, 2018
@bsclifton bsclifton removed bug/good-first-bug help wanted The PR/issue opener needs help to complete/report the task. labels Sep 1, 2018
@bsclifton
Copy link
Member

Closing in favor of brave/brave-browser#912

@bsclifton bsclifton removed this from the Backlog (Prioritized) milestone Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature/tabsbar open-in-brave-core priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). usability wontfix
Projects
None yet
Development

No branches or pull requests

5 participants