9797 "
9898 @click =" updateShareToken (share )" >
9999 <template #icon >
100- <IconCheck : size = " 20 " />
100+ <NcIconSvgWrapper : svg = " IconCheck " />
101101 </template >
102102 {{ t('forms', 'Save token') }}
103103 </NcActionButton >
231231
232232<script >
233233import IconPlus from ' @material-symbols/svg-400/outlined/add.svg?raw'
234+ import IconCheck from ' @material-symbols/svg-400/outlined/check.svg?raw'
234235import IconCodeBrackets from ' @material-symbols/svg-400/outlined/code.svg?raw'
235236import IconCopyAll from ' @material-symbols/svg-400/outlined/copy_all.svg?raw'
236237import IconDelete from ' @material-symbols/svg-400/outlined/delete.svg?raw'
@@ -250,16 +251,6 @@ import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwit
250251import NcIconSvgWrapper from ' @nextcloud/vue/components/NcIconSvgWrapper'
251252import NcNoteCard from ' @nextcloud/vue/components/NcNoteCard'
252253import NcTextField from ' @nextcloud/vue/components/NcTextField'
253- import IconAccountMultiple from ' vue-material-design-icons/AccountMultipleOutline.vue'
254- import IconCheck from ' vue-material-design-icons/Check.vue'
255- import IconCodeBrackets from ' vue-material-design-icons/CodeBrackets.vue'
256- import IconLinkVariant from ' vue-material-design-icons/Link.vue'
257- import IconLinkBoxVariantOutline from ' vue-material-design-icons/LinkBoxOutline.vue'
258- import IconPlus from ' vue-material-design-icons/Plus.vue'
259- import IconQr from ' vue-material-design-icons/Qrcode.vue'
260- import IconDelete from ' vue-material-design-icons/TrashCanOutline.vue'
261- import FormsIcon from ' ../Icons/FormsIcon.vue'
262- import IconCopyAll from ' ../Icons/IconCopyAll.vue'
263254import QRDialog from ' ../QRDialog.vue'
264255import SharingSearchDiv from ' ./SharingSearchDiv.vue'
265256import SharingShareDiv from ' ./SharingShareDiv.vue'
@@ -273,16 +264,6 @@ import OcsResponse2Data from '../../utils/OcsResponse2Data.js'
273264export default {
274265 components: {
275266 NcIconSvgWrapper,
276- FormsIcon,
277- IconAccountMultiple,
278- IconCheck,
279- IconCodeBrackets,
280- IconCopyAll,
281- IconDelete,
282- IconLinkBoxVariantOutline,
283- IconLinkVariant,
284- IconPlus,
285- IconQr,
286267 NcActions,
287268 NcActionButton,
288269 NcActionLink,
@@ -318,6 +299,7 @@ export default {
318299 setup () {
319300 return {
320301 FormsIcon,
302+ IconCheck,
321303 IconCopyAll,
322304 IconPlus,
323305 IconCodeBrackets,
@@ -339,21 +321,6 @@ export default {
339321 }
340322 },
341323
342- watch: {
343- publicLinkShares: {
344- immediate: true ,
345- handler (shares ) {
346- const nextShareTokens = {}
347- for (const share of shares) {
348- nextShareTokens[share .id ] =
349- this .shareTokens [share .id ] ?? share .shareWith
350- }
351-
352- this .shareTokens = nextShareTokens
353- },
354- },
355- },
356-
357324 computed: {
358325 isCurrentUserOwner () {
359326 return getCurrentUser ().uid === this .form .ownerId
@@ -383,6 +350,21 @@ export default {
383350 },
384351 },
385352
353+ watch: {
354+ publicLinkShares: {
355+ immediate: true ,
356+ handler (shares ) {
357+ const nextShareTokens = {}
358+ for (const share of shares) {
359+ nextShareTokens[share .id ] =
360+ this .shareTokens [share .id ] ?? share .shareWith
361+ }
362+
363+ this .shareTokens = nextShareTokens
364+ },
365+ },
366+ },
367+
386368 methods: {
387369 /**
388370 * Add share
0 commit comments