@@ -34,27 +34,27 @@ export enum InlineLoadingState {
34
34
template : `
35
35
@if (state !== InlineLoadingState.Hidden) {
36
36
<div class="cds--inline-loading__animation">
37
- @switch (state ) {
38
- @case (InlineLoadingState.Inactive || InlineLoadingState.Active) {
37
+ @switch (true ) {
38
+ @case (state === InlineLoadingState.Inactive || state === InlineLoadingState.Active) {
39
39
<div
40
40
class="cds--loading cds--loading--small"
41
41
[ngClass]="{
42
- 'cds--loading--stop': state === InlineLoadingState.Inactive
42
+ 'cds--loading--stop': state === InlineLoadingState.Inctive
43
43
}">
44
44
<svg class="cds--loading__svg" viewBox="0 0 100 100">
45
45
<circle class="cds--loading__background" cx="50%" cy="50%" r="44" />
46
46
<circle class="cds--loading__stroke" cx="50%" cy="50%" r="44" />
47
47
</svg>
48
48
</div>
49
49
}
50
- @case (InlineLoadingState.Finished) {
50
+ @case (state === InlineLoadingState.Finished) {
51
51
<svg
52
52
cdsIcon="checkmark--filled"
53
53
size="16"
54
54
class="cds--inline-loading__checkmark-container">
55
55
</svg>
56
56
}
57
- @case (InlineLoadingState.Error) {
57
+ @case (state === InlineLoadingState.Error) {
58
58
<svg
59
59
cdsIcon="error--filled"
60
60
size="16"
@@ -64,14 +64,14 @@ export enum InlineLoadingState {
64
64
}
65
65
</div>
66
66
}
67
- @switch(state ) {
68
- @case(InlineLoadingState.Inactive || InlineLoadingState.Active) {
67
+ @switch(true ) {
68
+ @case(state === InlineLoadingState.Inactive || state === InlineLoadingState.Active) {
69
69
<p class="cds--inline-loading__text">{{loadingText}}</p>
70
70
}
71
- @case(InlineLoadingState.Finished) {
71
+ @case(state === InlineLoadingState.Finished) {
72
72
<p class="cds--inline-loading__text">{{successText}}</p>
73
73
}
74
- @case(InlineLoadingState.Error) {
74
+ @case(state === InlineLoadingState.Error) {
75
75
<p class="cds--inline-loading__text">{{errorText}}</p>
76
76
}
77
77
}
0 commit comments