Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-02-07 14:57:33 +0300
committerMax <max@nextcloud.com>2022-02-09 11:42:47 +0300
commit95c706d16bc64cbc612fc9fd3d134e28f0269333 (patch)
treee4297d909fbb009b8d50ea6452b2586fe4351d43 /js/files-modal.js
parentc1af1a31584ffe9dac327c1e6eff037c77fa267c (diff)
fix: use tiptap.commands to focus
Either handle network errors or the response. There are three ways to handle errors and responses with axios: ``` axios.post(...).then(...).catch(...) axios.post(...).catch(...).then(...) axios.post(...).then(onResponse, onErr) ``` Use the last one. First one will catch errors triggered by the emits in the happy path with the network error handling. Second one will handle the response, even if errors have been caught. Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'js/files-modal.js')
-rw-r--r--js/files-modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/files-modal.js b/js/files-modal.js
index ad99ed173..d796e8486 100644
--- a/js/files-modal.js
+++ b/js/files-modal.js
@@ -1,2 +1,2 @@
-"use strict";(self.webpackChunktext=self.webpackChunktext||[]).push([["files-modal"],{19886:(e,t,l)=>{l.r(t),l.d(t,{default:()=>n});var i=l(47450);const a={name:"PublicFilesEditor",components:{Modal:l.n(i)(),EditorWrapper:function(){return Promise.all([l.e("vendors"),l.e("editor")]).then(l.bind(l,29278))}},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName:function(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close:function(){this.$emit("close")}}};const n=(0,l(51900).Z)(a,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return e.active?l("Modal",{attrs:{title:e.fileName},on:{close:e.close}},[l("EditorWrapper",{attrs:{"file-id":e.fileId,"relative-path":e.relativePath,active:e.active,"share-token":e.shareToken,mime:e.mimeType}})],1):e._e()}),[],!1,null,null,null).exports}}]);
-//# sourceMappingURL=files-modal.js.map?v=15132a89c84ff5602f96 \ No newline at end of file
+"use strict";(self.webpackChunktext=self.webpackChunktext||[]).push([["files-modal"],{19886:(e,t,l)=>{l.r(t),l.d(t,{default:()=>n});var i=l(47450);const a={name:"PublicFilesEditor",components:{Modal:l.n(i)(),EditorWrapper:function(){return Promise.all([l.e("vendors"),l.e("editor")]).then(l.bind(l,36199))}},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName:function(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close:function(){this.$emit("close")}}};const n=(0,l(51900).Z)(a,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return e.active?l("Modal",{attrs:{title:e.fileName},on:{close:e.close}},[l("EditorWrapper",{attrs:{"file-id":e.fileId,"relative-path":e.relativePath,active:e.active,"share-token":e.shareToken,mime:e.mimeType}})],1):e._e()}),[],!1,null,null,null).exports}}]);
+//# sourceMappingURL=files-modal.js.map?v=ff47379ecf4078d68339 \ No newline at end of file