Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8537799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:59:08+00:00 2026-06-11T10:59:08+00:00

In order to make a little yellow Saving/Saved indicator message at the top of

  • 0

In order to make a little yellow “Saving”/”Saved” indicator message at the top of my app, I’d like to have a boolean property indicating if any ember-data records are currently in flight.

I tried this:

App.store = DS.Store.create
  isSaving: (->
    for record in this.get('recordCache')
      if record?.getPath('stateManager.currentState.name') == 'inFlight'
        return true
    return false
  ).property('recordCache.@each.stateManager.currentState.name')

but then I discovered that recordCache is not observable.

I don’t use transactions, only App.store.commit(), so I looked at App.store.get('defaultTransaction'), but it didn’t yield anything useful.

I’m using the RESTAdapter, so if I can extend it into giving me this piece of information, that would work too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:59:09+00:00Added an answer on June 11, 2026 at 10:59 am

    Well, you could simply create a base model with a didUpdate property that handles showing your notification message, then have each of your models extend it. It’s really a stop-gap solution, but it works for the time being:

    App.Model = DS.Model.extend
        didUpdate: ->
            # invoke your notification
            alert("All changes saved!")
    
    App.User = App.Model.extend()
    

    However….this will fire for EVERY record that is updated. So you’d probably want create your notification class in such a way that it will not open more then one saved notification at once…but that’s up to you.

    I’m currently working on implementing some of the basic server-validation methods from this pull request https://github.com/emberjs/data/pull/376, and I’m hoping that I’ll come up with a better way to observe the status of commits (and will of course post back here if I do).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In order to make bundle work on its own i would like to call
I'm trying to solve the relational model in order to make a Django app.
I'm trying to make my little small engine in order to make a table
I have an object with which I would like to make follow a bezier
I have gotten myself a little confused with this. I am trying to make
In order to make my program more streamlined (Without try and catch everywhere), I
in order to make things easier for users i want to add multiple keyword
in order to make sure all form submission and all data submitted to server
Sometimes in order to make our application more responsive and fast, we use client
It appears that in order to make TinyMCE work with an ASP.NET AJAX website,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.