@osovitny/anatoly 3.20.43 → 3.20.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9073,10 +9073,10 @@ function Message2UserComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9073
9073
|
i0.ɵɵconditional(!(ctx_r1.message == null ? null : ctx_r1.message.block) ? 20 : -1);
|
|
9074
9074
|
} }
|
|
9075
9075
|
class Message2UserComponent extends ComponentBase {
|
|
9076
|
-
constructor(go,
|
|
9076
|
+
constructor(go, mus) {
|
|
9077
9077
|
super();
|
|
9078
9078
|
this.go = go;
|
|
9079
|
-
this.
|
|
9079
|
+
this.mus = mus;
|
|
9080
9080
|
this.show = false;
|
|
9081
9081
|
}
|
|
9082
9082
|
ngOnInit() {
|
|
@@ -9086,14 +9086,14 @@ class Message2UserComponent extends ComponentBase {
|
|
|
9086
9086
|
setDefaults() {
|
|
9087
9087
|
}
|
|
9088
9088
|
setValues() {
|
|
9089
|
-
this.subs.sink = this.
|
|
9089
|
+
this.subs.sink = this.mus.subscribe({
|
|
9090
9090
|
next: (data) => {
|
|
9091
9091
|
if (!data) {
|
|
9092
9092
|
return;
|
|
9093
9093
|
}
|
|
9094
9094
|
this.show = true;
|
|
9095
9095
|
this.message = data;
|
|
9096
|
-
this.config = this.
|
|
9096
|
+
this.config = this.mus.getConfig(data.type);
|
|
9097
9097
|
if (this.message?.timeout) {
|
|
9098
9098
|
setTimeout(() => {
|
|
9099
9099
|
this.show = false;
|
|
@@ -9105,7 +9105,7 @@ class Message2UserComponent extends ComponentBase {
|
|
|
9105
9105
|
//Events
|
|
9106
9106
|
onCloseAndBlock() {
|
|
9107
9107
|
this.show = false;
|
|
9108
|
-
if (this.
|
|
9108
|
+
if (this.config.go2dashboard) {
|
|
9109
9109
|
this.go.dashboard();
|
|
9110
9110
|
}
|
|
9111
9111
|
else {
|