Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update x and add width api to common dialog #599

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ require (
github.com/pquerna/otp v1.4.0
github.com/qor/oss v0.0.0-20240729105053-88484a799a79
github.com/qor5/web v1.3.2
github.com/qor5/x/v3 v3.0.10-0.20240925072355-d9262ada53f5
github.com/qor5/web/v3 v3.0.9-0.20240925032527-e126c3282af2
github.com/qor5/x/v3 v3.0.10-0.20240925021357-ed67be38075d
github.com/samber/lo v1.47.0
github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/spf13/cast v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ github.com/qor/oss v0.0.0-20240729105053-88484a799a79 h1:MXQCoxxGj15XjuOSdhkLrPs
github.com/qor/oss v0.0.0-20240729105053-88484a799a79/go.mod h1:FDxJAVwmZ1j8ITcKJExFlzkTYuUor1dBKZgNVWqEqlM=
github.com/qor5/web v1.3.2 h1:zw796YJeDLe8vRwGR1cM+uS1ZuSkPutchBEXv2GgOhI=
github.com/qor5/web v1.3.2/go.mod h1:LszskQJbFQDJwOeZC6j6afOiHxxyjrzz8B3zuBwfgKQ=
github.com/qor5/x/v3 v3.0.10-0.20240925072355-d9262ada53f5 h1:7VtbeHlAuQkQPPEi81fTBs/frCzpW6Qs2wOqoq9+k+g=
github.com/qor5/x/v3 v3.0.10-0.20240925072355-d9262ada53f5/go.mod h1:ebg7TORMQLVRlZyDyZbAsxbQoiN4wMBVhyFHdYxv6Tw=
github.com/qor5/web/v3 v3.0.9-0.20240925032527-e126c3282af2 h1:M19hKQryK3MM7UQdb9Mwg5y/NO1hjooH9aptPpWWX2w=
github.com/qor5/web/v3 v3.0.9-0.20240925032527-e126c3282af2/go.mod h1:32vdHHcZb2JimlcaclW9hLUyimdXjrllZDHTh3rl6d0=
github.com/qor5/x/v3 v3.0.10-0.20240925021357-ed67be38075d h1:V1avyyGkhHH+Z3RKhU+wfAeywWCyfLtdrynQc9GUqvQ=
github.com/qor5/x/v3 v3.0.10-0.20240925021357-ed67be38075d/go.mod h1:ebg7TORMQLVRlZyDyZbAsxbQoiN4wMBVhyFHdYxv6Tw=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
Expand Down
2 changes: 2 additions & 0 deletions utils/confirm_dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type UtilDialogPayloadType struct {
ContentEl h.HTMLComponent
OkAction string
CancelAction string
Width int
HideClose bool
Msgr *Messages
}
Expand Down Expand Up @@ -75,6 +76,7 @@ func CustomDialog(payload UtilDialogPayloadType) h.HTMLComponent {
).Size(payload.Size).
Type(payload.TypeField).
Title(payload.Title).
Width(payload.Width).
OkText(payload.Msgr.OK).
CancelText(payload.Msgr.Cancel).
Attr("v-model", "locals.customConfirmationDialog").
Expand Down
Loading