Skip to content

Message service with new options

Choose a tag to compare

@uatisdeproblem uatisdeproblem released this 03 Mar 16:35
· 6 commits to main since this release

Breaking changes

  • Common. Message service now accepts more options rather than a simple boolean.
    // before
    this._message.error('Some message', true);
    // after
    this._message.error('Some message', { dontTranslate: true });
    • The new options allow to specify a serverMessage, an untranslatable text — usually coming from the server, to show with a smaller font below the regular message.
    try {
      // ...
    } catch(err) {
      this._message.error('COMMON.OPERATION_FAILED', { serverMessage: err.message });
    }
    example