Do not hide "Saving draft" unless ajax errors or succeeds

Created on 3 July 2024, about 1 year ago
Updated 5 July 2024, about 1 year ago

Problem/Motivation

Right now the toast notification for "Saving draft..." automatically hides after a delay:

          if (Drupal.autosaveForm.notification.active) {
            $('#autosave-notification').fadeIn().delay(Drupal.autosaveForm.notification.delay).fadeOut();
          }

However, this doesn't mean the form actually saved. The fadeIn should be called immediately and the fadeOut once success or error callback is invoked.

Or, actually in ajax.options.complete

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024