You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got this working fine up to the point when I tried to use (taken from a working warning confirmation thing I have in the code):
constreminder=awaitthis.$dialog.info({title: 'Template creation',text: `Please remember to use the <code>{{yourVariableNameHere}}</code> syntax when adding variables (that will be filled as you create a page with said template)`,actions: {false: {color: 'error',text: 'Cancel'},true: {color: 'primary',text: 'OK'}}});
The above leads to errors, however replacing info with warning/error makes it work.
The only way it works is by doing the following:
constreminder=awaitthis.$dialog.confirm({type: 'info',title: 'Template creation',text: `Please remember to use the <code>{{yourVariableNameHere}}</code> syntax when adding variables (that will be filled as you create a page with said template)`,actions: {false: {color: 'error',text: 'Cancel'},true: {color: 'primary',text: 'OK'}}});
I've tried the same above two variants with success and it appears that this inconsistent behaviour also applies to that.
The demo subtly suggests that it's not a bug, however, this seems inconsistent (only allowing a part of the types one way and allowing all types in another) and possibly not intended?
The text was updated successfully, but these errors were encountered:
I've got this working fine up to the point when I tried to use (taken from a working warning confirmation thing I have in the code):
The above leads to errors, however replacing
info
withwarning
/error
makes it work.The only way it works is by doing the following:
I've tried the same above two variants with
success
and it appears that this inconsistent behaviour also applies to that.The demo subtly suggests that it's not a bug, however, this seems inconsistent (only allowing a part of the
type
s one way and allowing alltype
s in another) and possibly not intended?The text was updated successfully, but these errors were encountered: