Skip to content

Commit 3270f87

Browse files
authored
Merge pull request #6085 from LibreSign/fix/keep-sidebar-open-on-save
fix: keep sidebar open on save
2 parents ec9c507 + 0cb0086 commit 3270f87

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/Components/Request/VisibleElements.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

src/views/FilesList/FilesList.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ import FolderIcon from 'vue-material-design-icons/Folder.vue'
7878
import ListViewIcon from 'vue-material-design-icons/FormatListBulletedSquare.vue'
7979
import ViewGridIcon from 'vue-material-design-icons/ViewGrid.vue'
8080
81-
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
8281
import { loadState } from '@nextcloud/initial-state'
8382
8483
import 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>

src/views/Request.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
</div>
2323
</template>
2424
<script>
25-
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
26-
2725
import File from '../Components/File/File.vue'
2826
import 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

0 commit comments

Comments
 (0)