Skip to content

Commit

Permalink
Merge pull request #330 from OnroerendErfgoed/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
goessebr authored Jul 7, 2023
2 parents 8b928f3 + ee984ff commit 6c3f7fc
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/commonjs/utilities/message/message.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/utilities/message/message.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/commonjs/utilities/message/restMessage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/utilities/message/restMessage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/utilities/message/message.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/utilities/message/message.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/native-modules/utilities/message/restMessage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/utilities/message/restMessage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oerelia",
"description": "Onroerend Erfgoed Aurelia component library",
"version": "0.25.0",
"version": "0.26.0",
"repository": {
"type": "git",
"url": "https://github.com/OnroerendErfgoed/oerelia.git"
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/message/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Message {

private show(type: messageType, config: IMessage): HTMLElement {
try {
const element = this.emitter[type](config.message, config.title);
const element = this.emitter[type](config.message, config.title, config.emitterOptions);
return element ? element[0] : undefined;
} catch (e) {
console.debug('[MESSAGE]: Failed to show message' + e);
Expand Down
6 changes: 3 additions & 3 deletions src/utilities/message/restMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export class RestMessage {
}
}

if (this.restSuccess && !this.customErrorFailed) {
if (!this.restSuccess || this.customErrorFailed) {
this.error(config.result)
} else if (config.success) {
Message.success(config.success);
} else {
this.error(config.result);
}
}

Expand Down

0 comments on commit 6c3f7fc

Please sign in to comment.