Commit a353b253 authored by Simon Knox's avatar Simon Knox

add prop to hide modal footer

parent 87ca75a3
...@@ -170,6 +170,7 @@ export default { ...@@ -170,6 +170,7 @@ export default {
<template> <template>
<popup-dialog <popup-dialog
v-show="currentPage" v-show="currentPage"
:hide-footer="readonly"
:title="title" :title="title"
:primary-button-label="buttonText" :primary-button-label="buttonText"
:kind="buttonKind" :kind="buttonKind"
...@@ -261,9 +262,5 @@ export default { ...@@ -261,9 +262,5 @@ export default {
</div> </div>
</div> </div>
</form> </form>
<div
slot="footer"
v-if="readonly"
></div>
</popup-dialog> </popup-dialog>
</template> </template>
...@@ -11,6 +11,11 @@ export default { ...@@ -11,6 +11,11 @@ export default {
type: String, type: String,
required: false, required: false,
}, },
hideFooter: {
type: Boolean,
required: false,
default: false,
},
kind: { kind: {
type: String, type: String,
required: false, required: false,
...@@ -24,7 +29,7 @@ export default { ...@@ -24,7 +29,7 @@ export default {
type: Boolean, type: Boolean,
required: false, required: false,
default: false, default: false,
} },
}, },
computed: { computed: {
...@@ -79,7 +84,7 @@ export default { ...@@ -79,7 +84,7 @@ export default {
</slot> </slot>
</div> </div>
<slot name="footer"> <slot name="footer">
<div class="modal-footer"> <div class="modal-footer" v-if="!hideFooter">
<button <button
type="button" type="button"
class="btn pull-left" class="btn pull-left"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment