File tree Expand file tree Collapse file tree 3 files changed +0
-16
lines changed
Expand file tree Collapse file tree 3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ export default {
299299 const response = await this .filesStore .saveWithVisibleElements ({ visibleElements })
300300 showSuccess (t (' libresign' , response .message ))
301301 this .closeModal ()
302- emit (' libresign:visible-elements-saved' )
303302 this .loading = false
304303 return true
305304 } catch (error) {
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ import FolderIcon from 'vue-material-design-icons/Folder.vue'
7878import ListViewIcon from ' vue-material-design-icons/FormatListBulletedSquare.vue'
7979import ViewGridIcon from ' vue-material-design-icons/ViewGrid.vue'
8080
81- import { subscribe , unsubscribe } from ' @nextcloud/event-bus'
8281import { loadState } from ' @nextcloud/initial-state'
8382
8483import NcAppContent from ' @nextcloud/vue/components/NcAppContent'
@@ -152,11 +151,9 @@ export default {
152151 async mounted () {
153152 await this .filesStore .getAllFiles ({ force_fetch: true })
154153 this .loading = false
155- subscribe (' libresign:visible-elements-saved' , this .closeSidebar )
156154 this .filesStore .disableIdentifySigner ()
157155 },
158156 beforeUnmount () {
159- unsubscribe (' libresign:visible-elements-saved' )
160157 this .filesStore .selectFile ()
161158 },
162159 methods: {
@@ -166,9 +163,6 @@ export default {
166163 toggleGridView () {
167164 this .userConfigStore .update (' grid_view' , ! this .userConfigStore .grid_view )
168165 },
169- closeSidebar () {
170- this .filesStore .selectFile ()
171- },
172166 },
173167}
174168 </script >
Original file line number Diff line number Diff line change 2222 </div >
2323</template >
2424<script >
25- import { subscribe , unsubscribe } from ' @nextcloud/event-bus'
26-
2725import File from ' ../Components/File/File.vue'
2826import ReqestPicker from ' ../Components/Request/RequestPicker.vue'
2927
@@ -42,18 +40,11 @@ export default {
4240 return { filesStore, sidebarStore }
4341 },
4442 async mounted () {
45- subscribe (' libresign:visible-elements-saved' , this .closeSidebar )
4643 this .filesStore .disableIdentifySigner ()
4744 },
4845 beforeUnmount () {
49- unsubscribe (' libresign:visible-elements-saved' )
5046 this .filesStore .selectFile ()
5147 },
52- methods: {
53- closeSidebar () {
54- this .filesStore .selectFile ()
55- },
56- },
5748}
5849 </script >
5950
You can’t perform that action at this time.
0 commit comments