{"id":20754468,"url":"https://github.com/annotationsro/ember-confirm-dialog","last_synced_at":"2025-04-28T16:29:05.091Z","repository":{"id":46647804,"uuid":"59347238","full_name":"AnnotationSro/ember-confirm-dialog","owner":"AnnotationSro","description":"Ember addon to wrap a button into a confirm dialog.","archived":false,"fork":false,"pushed_at":"2021-10-01T19:16:10.000Z","size":1245,"stargazers_count":1,"open_issues_count":6,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T19:23:09.368Z","etag":null,"topics":["addon","confirmation-dialog","dialog","ember","hacktoberfest"],"latest_commit_sha":null,"homepage":"http://annotationsro.github.io/ember-confirm-dialog/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnnotationSro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-21T07:21:26.000Z","updated_at":"2021-10-01T19:16:13.000Z","dependencies_parsed_at":"2022-09-16T11:50:16.008Z","dependency_job_id":null,"html_url":"https://github.com/AnnotationSro/ember-confirm-dialog","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-confirm-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-confirm-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-confirm-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-confirm-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnnotationSro","download_url":"https://codeload.github.com/AnnotationSro/ember-confirm-dialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251345345,"owners_count":21574698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addon","confirmation-dialog","dialog","ember","hacktoberfest"],"created_at":"2024-11-17T09:17:55.437Z","updated_at":"2025-04-28T16:29:05.062Z","avatar_url":"https://github.com/AnnotationSro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/AnnotationSro/ember-confirm-dialog.svg?branch=master)](https://travis-ci.org/AnnotationSro/ember-confirm-dialog)\n\nDEMO: http://annotationsro.github.io/ember-confirm-dialog/\n\n# Ember-confirm-dialog\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.4 or above\n* Ember CLI v2.13 or above\n* Node.js v8 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\nConfirm user actions - just wrap your button/link/whatever with this addon. The target action will be called only when user confirms the dialog.\n\nThis addon relies on **ember-modal-dialog** to show the dialog itself.\n\n## Install\n\nDo not forget to add these SASS imports into your **app.scss** - sorry about that - if you know how to make this easier, let me know :(\n```\n@import \"ember-modal-dialog/ember-modal-structure\";\n@import \"ember-modal-dialog/ember-modal-appearance\";\n```\n\n## Usage\n\n### Simple confirm dialog (with default settings)\n\n  Action _confirmedAction_ will be called only when user confirms the confirmation dialog.\n\n  ```\n  {{#confirm-dialog}}\n      \u003cbutton {{action 'confirmedAction'}}\u003eClick me!\u003c/button\u003e\n  {{/confirm-dialog}}\n  ```\n\n You can also use a property `disabled` to control whether the confirm dialog should be enabled or not.\n\n### Confirm dialog with custom texts and all the callbacks\n\n  _Custom callbacks for confirm and cancel buttons_\n\n  ```\n  {{#confirm-dialog\n  text=\"Do you want to destry the world?\"\n  confirmButton=\"Yeah, do it!\"\n  cancelButton=\"Noooooo!!!!!\"\n  confirmAction=(action 'confirmDestroy')\n  cancelAction=(action 'cancelDestroy')\n  }}\n      \u003cbutton {{action 'destroyWorld'}}\u003eDESTROY THE WORLD !\u003c/button\u003e\n  {{/confirm-dialog}}\n  ```\n### Confirm dialog with Bootstrap (CSS classes for confirm/cancel buttons) + FontAwesome icons in buttons\n\n_Note: any font icon set is supported, not only FontAwesome_\n\n  ```\n  {{#confirm-dialog\n  confirmButtonClass=\"btn btn-success\"\n  cancelButtonClass=\"btn btn-danger\"\n  okCssIcon=\"fa fa-check-circle-o\"\n  cancelCssIcon=\"fa fa-ban\"\n  }}\n      \u003cbutton {{action 'confirmedAction'}}\u003eClick me!\u003c/button\u003e\n  {{/confirm-dialog}}\n  ```\n\n### Confirm dialog with title and custom CSS classes\n\n```\n  {{#confirm-dialog\n  dialogClass=\"custom-confirm-dialog\"\n  title=\"This is a title\"\n  text=\"And this is a content\"\n  }}\n```\nIn your SASS/CSS\n```css\n.custom-confirm-dialog {\n\n  .dialog-title{\n    background-color: aqua;\n  }\n\n  .dialog-text{\n    color: red;\n  }\n\n  .dialog-footer{\n    background-color: gray;\n  }\n}\n```\n# Addon Development\n\n## Installation\n\n* `git clone` this repository\n* `npm install`\n\n## Running\n\n* `ember serve`\n* Visit the dummy application at http://localhost:4200.\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannotationsro%2Fember-confirm-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannotationsro%2Fember-confirm-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannotationsro%2Fember-confirm-dialog/lists"}