Merge branch 'fixes/fixe/edit-sidebar' into staging

This commit is contained in:
Narindra ezway 2025-04-22 15:15:28 +03:00
commit e02735c063
3 changed files with 14 additions and 14 deletions

View File

@ -16514,7 +16514,7 @@ __webpack_require__.r(__webpack_exports__);
*
* @return {boolean}
*/
isPrivate() {
checkIsPrivate() {
return this.calendarObjectInstance.attendees.filter(attendee => {
if (this.currentUser.emailAddress.toLowerCase() !== (attendee.uri.split('mailto:').length === 2 ? attendee.uri.split('mailto:')[1].toLowerCase() : attendee.uri.toLowerCase())) {
return attendee;
@ -16532,7 +16532,7 @@ __webpack_require__.r(__webpack_exports__);
if (!this.doNotShare) {
const total = this.showModalNewAttachments.length;
this.showPreloader = true;
if (!this.isPrivate()) {
if (!this.checkIsPrivate()) {
this.showModalNewAttachments.map(async (attachment, i) => {
// console.log('Add share', attachment)
this.sharedProgress = Math.ceil(100 * (i + 1) / total);
@ -16593,10 +16593,10 @@ __webpack_require__.r(__webpack_exports__);
const newAttachments = this.calendarObjectInstance.attachments.filter(attachment => {
// get only new attachments
// TODO get NOT only new attachments =) Maybe we should filter all attachments without share-type, 'cause event can be private and AFTER save owner could add new participant
return !this.isPrivate() ? attachment.isNew && attachment.shareTypes === null : attachment.isNew && attachment.shareTypes !== null;
return !this.checkIsPrivate() ? attachment.isNew && attachment.shareTypes === null : attachment.isNew && attachment.shareTypes !== null;
});
// if there are new attachment and event not saved
if (newAttachments.length > 0 && !this.isPrivate()) {
if (newAttachments.length > 0 && !this.checkIsPrivate()) {
// and is event NOT private,
// then add share to each attachment
// only if attachment['share-types'] is null or empty
@ -25090,7 +25090,7 @@ var render = function render() {
"calendar-object-instance": _vm.calendarObjectInstance,
"is-read-only": _vm.isReadOnly
}
}) : _vm._e(), _vm._v(" "), _vm.showModal && !_vm.isPrivate() ? _c("NcModal", {
}) : _vm._e(), _vm._v(" "), _vm.showModal && !_vm.checkIsPrivate() ? _c("NcModal", {
attrs: {
name: _vm.t("calendar", "Managing shared access")
},
@ -25135,7 +25135,7 @@ var render = function render() {
staticClass: "modal-footer"
}, [_c("div", {
staticClass: "modal-footer-checkbox"
}, [!_vm.isPrivate() ? _c("NcCheckboxRadioSwitch", {
}, [!_vm.checkIsPrivate() ? _c("NcCheckboxRadioSwitch", {
attrs: {
checked: _vm.doNotShare
},
@ -314321,4 +314321,4 @@ appointmentsConfigsStore.addInitialConfigs((0,_nextcloud_initial_state__WEBPACK_
/******/ })()
;
//# sourceMappingURL=calendar-main.js.map?v=4438b0708af03839f9aa
//# sourceMappingURL=calendar-main.js.map?v=5c8ef601497f2b4b06f6

File diff suppressed because one or more lines are too long

View File

@ -232,7 +232,7 @@
:calendar-object-instance="calendarObjectInstance"
:is-read-only="isReadOnly" />
<NcModal v-if="showModal && !isPrivate()"
<NcModal v-if="showModal && !checkIsPrivate()"
:name="t('calendar', 'Managing shared access')"
@close="closeAttachmentsModal">
<div class="modal-content">
@ -263,7 +263,7 @@
</div>
<div class="modal-footer">
<div class="modal-footer-checkbox">
<NcCheckboxRadioSwitch v-if="!isPrivate()" :checked.sync="doNotShare">
<NcCheckboxRadioSwitch v-if="!checkIsPrivate()" :checked.sync="doNotShare">
{{ t('calendar', 'Deny access') }}
</NcCheckboxRadioSwitch>
</div>
@ -615,7 +615,7 @@ export default {
*
* @return {boolean}
*/
isPrivate() {
checkIsPrivate() {
return this.calendarObjectInstance.attendees.filter((attendee) => {
if (this.currentUser.emailAddress.toLowerCase() !== (
attendee.uri.split('mailto:').length === 2
@ -639,7 +639,7 @@ export default {
if (!this.doNotShare) {
const total = this.showModalNewAttachments.length
this.showPreloader = true
if (!this.isPrivate()) {
if (!this.checkIsPrivate()) {
this.showModalNewAttachments.map(async (attachment, i) => {
// console.log('Add share', attachment)
this.sharedProgress = Math.ceil(100 * (i + 1) / total)
@ -701,10 +701,10 @@ export default {
const newAttachments = this.calendarObjectInstance.attachments.filter(attachment => {
// get only new attachments
// TODO get NOT only new attachments =) Maybe we should filter all attachments without share-type, 'cause event can be private and AFTER save owner could add new participant
return !this.isPrivate() ? attachment.isNew && attachment.shareTypes === null : attachment.isNew && attachment.shareTypes !== null
return !this.checkIsPrivate() ? attachment.isNew && attachment.shareTypes === null : attachment.isNew && attachment.shareTypes !== null
})
// if there are new attachment and event not saved
if (newAttachments.length > 0 && !this.isPrivate()) {
if (newAttachments.length > 0 && !this.checkIsPrivate()) {
// and is event NOT private,
// then add share to each attachment
// only if attachment['share-types'] is null or empty