-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[modal] allow Close button in Modal to be hidden #379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you thinking of this for use case as an alert (with only OK button)?
lib/components/modal.vue
Outdated
@@ -48,7 +48,7 @@ | |||
|
|||
<footer class="modal-footer" ref="footer" v-if="!hideFooter"> | |||
<slot name="modal-footer"> | |||
<b-btn variant="secondary" @click="hide(false)">{{closeTitle}}</b-btn> | |||
<b-btn variant="secondary" @click="hide(false) v-if="!hideClose">{{closeTitle}}</b-btn> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a closing quote on @click="hide(false)
lib/components/modal.vue
Outdated
@@ -161,6 +161,10 @@ | |||
type: Boolean, | |||
default: false | |||
}, | |||
hideClose: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this would be better called 'okOnly'?
Exactly. I'll make the 2 changes you've suggested. okOnly is probably better. |
Cool. I'll let @pi0 review. He should be back online in a few hours. |
Thanks! |
No description provided.