Skip to content

Commit 36e217a

Browse files
authored
Merge pull request #35578 from nextcloud/backport/35271/stable25
2 parents b6e7b3b + 1b923cb commit 36e217a

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299

300300
<script>
301301
import { generateUrl } from '@nextcloud/router'
302-
import { showError } from '@nextcloud/dialogs'
302+
import { showError, showSuccess } from '@nextcloud/dialogs'
303303
import { Type as ShareTypes } from '@nextcloud/sharing'
304304
import Vue from 'vue'
305305
@@ -766,6 +766,7 @@ export default {
766766
if (typeof this.share.newLabel === 'string') {
767767
this.share.label = this.share.newLabel
768768
this.$delete(this.share, 'newLabel')
769+
showSuccess(t('files_sharing', 'Share label saved'))
769770
this.queueUpdate('label')
770771
}
771772
},
@@ -832,6 +833,7 @@ export default {
832833
onPasswordSubmit() {
833834
if (this.hasUnsavedPassword) {
834835
this.share.password = this.share.newPassword.trim()
836+
showSuccess(t('files_sharing', 'Share password saved'))
835837
this.queueUpdate('password')
836838
}
837839
},

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
*/
2727

28+
import { showSuccess } from '@nextcloud/dialogs'
2829
import { getCurrentUser } from '@nextcloud/auth'
2930
// eslint-disable-next-line import/no-unresolved, node/no-missing-import
3031
import PQueue from 'p-queue'
@@ -211,6 +212,7 @@ export default {
211212
if (this.share.newNote) {
212213
this.share.note = this.share.newNote
213214
this.$delete(this.share, 'newNote')
215+
showSuccess(t('files_sharing', 'Share note saved'))
214216
this.queueUpdate('note')
215217
}
216218
},
@@ -224,6 +226,10 @@ export default {
224226
this.open = false
225227
await this.deleteShare(this.share.id)
226228
console.debug('Share deleted', this.share.id)
229+
const message = this.share.itemType === 'file'
230+
? t('files_sharing', 'File "{path}" has been unshared', { path: this.share.path })
231+
: t('files_sharing', 'Folder "{path}" has been unshared', { path: this.share.path })
232+
showSuccess(message)
227233
this.$emit('remove:share', this.share)
228234
} catch (error) {
229235
// re-open menu if error

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)