From 63d51404202fe6d68ec46f4e8d7d67ba6e8f274b Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 30 Sep 2019 11:38:29 +0200 Subject: [PATCH] break two - two --- webapp/components/Editor/nodes/Embed.js | 8 +++++++- webapp/graphql/User.js | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/webapp/components/Editor/nodes/Embed.js b/webapp/components/Editor/nodes/Embed.js index 7e63f2170..8a9343311 100644 --- a/webapp/components/Editor/nodes/Embed.js +++ b/webapp/components/Editor/nodes/Embed.js @@ -19,7 +19,7 @@ const template = ` -

+

dataEmbedUrl

@@ -91,6 +91,7 @@ export default class Embed extends Node { embedData: {}, showEmbed: true, showOverlay: false, + linkOnly: false, }), async created() { if (!this.options) return {} @@ -103,6 +104,11 @@ export default class Embed extends Node { }), embedHtml() { const { html = '' } = this.embedData + if (html === '') { + this.linkOnly = true + } else { + this.linkOnly = false + } return html }, embedImage() { diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index 91204cbef..8e3ff06af 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -153,4 +153,3 @@ export const checkSlugAvailableQuery = gql` } } ` -