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

[modal] allow Close button in Modal to be hidden #379

Merged
merged 2 commits into from
May 11, 2017

Conversation

andrewharvey
Copy link
Contributor

No description provided.

Copy link
Member

@tmorehouse tmorehouse left a 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)?

@@ -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>
Copy link
Member

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)

@@ -161,6 +161,10 @@
type: Boolean,
default: false
},
hideClose: {
Copy link
Member

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'?

@tmorehouse tmorehouse requested a review from pi0 May 11, 2017 00:35
@andrewharvey
Copy link
Contributor Author

Are you thinking of this for use case as an alert (with only OK button)?

Exactly.

I'll make the 2 changes you've suggested. okOnly is probably better.

@tmorehouse
Copy link
Member

Cool.

I'll let @pi0 review. He should be back online in a few hours.

@pi0 pi0 merged commit a734d99 into bootstrap-vue:master May 11, 2017
@pi0
Copy link
Member

pi0 commented May 11, 2017

Thanks!

@tmorehouse tmorehouse changed the title allow Close button in Modal to be hidden [modal] allow Close button in Modal to be hidden Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants