diff --git a/app/javascript/vue/shareable_links/components/shareable_link_modal.vue b/app/javascript/vue/shareable_links/components/shareable_link_modal.vue
index fa5fcdb12..ebe13bcb1 100644
--- a/app/javascript/vue/shareable_links/components/shareable_link_modal.vue
+++ b/app/javascript/vue/shareable_links/components/shareable_link_modal.vue
@@ -95,6 +95,10 @@
name: "shareModalContainer",
components: { deleteShareableLinkModal },
props: {
+ open: {
+ type: Boolean,
+ required: true
+ },
shared: {
type: Boolean,
default: false
@@ -123,11 +127,12 @@
watch: {
shared() {
this.sharedEnabled = this.shared;
+ },
+ open() {
+ this.open ? this.showModal() : this.hideModal();
}
},
mounted() {
-
- $(this.$refs.modal).modal('show');
$(this.$refs.modal).on('hidden.bs.modal', () => {
if (!this.confirmingDelete) {
this.$emit('close');
diff --git a/app/javascript/vue/shareable_links/container.vue b/app/javascript/vue/shareable_links/container.vue
index d9fc2a360..9d2a5506e 100644
--- a/app/javascript/vue/shareable_links/container.vue
+++ b/app/javascript/vue/shareable_links/container.vue
@@ -12,14 +12,15 @@
{{ shareValue }}
-
-