Coder Social home page Coder Social logo

Comments (9)

m-e-conroy avatar m-e-conroy commented on August 22, 2024

Hey, thanks. I'll add it as an enhancement in my todo, unless you feel like forking the repo and adding a pull request.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

I just uploaded the changes to the master branch. I actually when ahead and did this for all service calls and original controllers, hopefully you'll be able to decorate which ever one you wish. Let me know if works.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

Sorry, just wanted to say. I haven't minified it yet. so if you want to try it, you'll need dialogs.js not dialogs.min.js

from angular-dialog-service.

mark0978 avatar mark0978 commented on August 22, 2024

I was going to fork it, but since you already got it, I'm gonna just go right ahead and use it.

Thanks.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

Ok I minified dialogs.js and pushed up a new release version 5.1.2. Thanks for the help.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

@mark0978 5.1.2 had a typo, its been corrected in 5.1.3

from angular-dialog-service.

mark0978 avatar mark0978 commented on August 22, 2024

I've had to make a few changes to get data on the local scope, but its not ready for a PR yet, however I'm running into this problem

image

now that I'm on 5.1.3 and was wondering why that would be happening. At this point, the only extending I have done is:

            $delegate.requestFailed = function(reason) {
                $log.error(reason);
                if(reason.status === 500) {
                    $delegate.error(reason.statusText, reason.data);
                } ...
            };

So I'm not sure why the translation isn't being done. I'm looking into it now.

from angular-dialog-service.

mark0978 avatar mark0978 commented on August 22, 2024

Turns out I had failed to add 'dialogs.default-translations', to my app module list.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

You beat me to it. I saw your email about the trouble but its such a pain to type out a message on a phone so I thought I'd wait to get to my office to message you back.

That was the first thing I thought of, that you hadn't added the translations to your application module. I had to do this because there were others complaining to me that they were already using angular.translate in their application elsewhere and that the automatic inclusion in the dialog service was overwriting their translations. I had to separate it out and make it mandatory to include the default-translations as part of using the dialog services.

I'm going to look into easing that a bit, perhaps have some kind of fall back if someone forgets to include the default module as you did.

Sorry about that Mark.

from angular-dialog-service.

Related Issues (20)

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.