Giter Club home page Giter Club logo

ember-routable-modal's People

Contributors

benkingcode avatar dwayneh avatar ember-tomster avatar kemenaran avatar kltdwrds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-routable-modal's Issues

Override Modal Close Functionality

Hey! I love this addon and it has been easy to work with, but I've got a question.

I'm currently using a modal that handles a user creation form for an app and was curious if there was a way to override the behavior when a user clicks out of a modal to close it. I've currently set a cancel button and the typical 'X' in the corner to close the modal to rollback my model on close, but when looking through the documentation I haven't found a way to mimic that behavior when a user clicks away.

I don't mind working on adding a feature like this if it doesn't currently exist if you'd like, but I wanted to double check before I go down that path =).

Thanks!

Doesn't work with Ember FastBoot

The checks in the current-routed-modal service fail in FastBoot mode. This seems to be because the checks are merely looking whether $ or window are undefined, but it seems to be possible for both to be defined in FastBoot mode, because that's what's happening to me.

I'm not sure what the most reliable check is. Ensuring document is undefined seems to work. Injecting the fastboot service and checking its isFastBoot property seems to work, too.

Can't write any integration test

integration test, I mean Ember integration test.

TypeError: Cannot read property 'get' of undefined

When launching the basic, generated integration test of Ember

Option to disable routing

This might sound like a weird suggestion, but it would be nice to have an option to make a modal non-routable (basically being able to disable the primary feature of this addon.

Here is why:

  1. in the case of the security modal, i.e. "Please confirm you really want to delete your account", we should not be able to access that route directly: example.com/user/settings/delete-confirmation
  2. for styling and to avoid code duplication, to fix 1. we don't want to move to another, second ember modal addon such as https://github.com/yapplabs/ember-modal-dialog

So yes, I currently have to use both ember-routable-modal and ember-modal-dialog, but would like to use only one of them (yours!).

What do you think?

Using outlet within routable modal doesn't render

I've tried adding an outlet within my modal so that I can create steps for creating an order, eg. order/create/details, order/create/items

The outlet doesn't seem to render when navigating via link-to, however, it does render when I navigate to the nested route by entering the url directly.

Model not found when visiting modal route directly

When moving from blog.com/articles/5/ to blog.com/articles/5/edit, the modal opens and the model for article with id 5 is found without problem.

When visiting blog.com/articles/5/edit directly, the model is not found unless I look for it myself:

import Ember from 'ember';

import ModalRouteMixin from 'ember-routable-modal/mixins/route';

const { Route } = Ember;

export default Route.extend(ModalRouteMixin, {
  model() {
    return this.store.peekRecord('article', this.router.targetState.routerJsState.params['articles.show'].id);
  }
});

Is this something that could be avoided? Thanks

Loading State

Hi,
we´ve got an weired behaviour opening a routed modal with a model hook.
There are 2 routed modals. One without a model hook (MR1) and one with a model hook (MR2). For both there is no loading state defined.

  1. Opening MR1 --> MR1 is displayed as expected
  2. Closing MR1 --> MR1 is closed as expected
  3. Opening MR2 --> MR1 is shown as loading state, while model is resolving, then MR2 is shown NOT EXPECTED

Opening just MR2 works as expected.
Defining an loading template for MR2 fixes the problem of case 3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.