1.0.1 • Published 8 years ago

ember-cli-dirty-confirm v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

#ember-cli-dirty-confirm

npm version Build Status Code Climate

A dirty model route transition aborter. It will show a confirm dialog giving you a chance to cancel a route change. If you agree, it will rollback your model.

##Usage

ember install ember-cli-dirty-confirm
import DirtyConfirmRouteMixin from 'ember-cli-dirty-confirm/mixins/dirty-confirm-route';

export default Ember.Route.extend(DirtyConfirmRouteMixin, {
  // optional, the default message is "Leaving this page will lose your changes. Are you sure?"
  dirtyMessage: "Please don't go!",
  // optional, temporarily disable the message
  isDirtyConfirmEnabled: false
});

It also exposes an action called toggleDirtyConfirm, so you can toggle off from outside the route.

1.0.1

8 years ago

1.0.0

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago