Update
This commit is contained in:
@@ -16,6 +16,7 @@ $APPLICATION->IncludeComponent(
|
||||
'PAGE_MODE' => false,
|
||||
'PAGE_MODE_OFF_BACK_URL' => '/',
|
||||
'USE_PADDING' => false,
|
||||
'USE_UI_TOOLBAR' => 'Y',
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ return [
|
||||
'vote.component.loader',
|
||||
'main.core.events',
|
||||
'im.v2.lib.menu',
|
||||
'ui.icon-set.api.core',
|
||||
'vote.analytics',
|
||||
'main.core',
|
||||
'ui.vue3.directives.hint',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable */
|
||||
this.BX = this.BX || {};
|
||||
this.BX.Vote = this.BX.Vote || {};
|
||||
(function (exports,im_v2_const,vote_provider_service,vote_component_loader,main_core_events,im_v2_lib_menu,vote_analytics,main_core,ui_vue3_directives_hint,vote_application,main_popup,ui_vue3_components_popup) {
|
||||
(function (exports,im_v2_const,vote_provider_service,vote_component_loader,main_core_events,im_v2_lib_menu,ui_iconSet_api_core,vote_analytics,main_core,ui_vue3_directives_hint,vote_application,main_popup,ui_vue3_components_popup) {
|
||||
'use strict';
|
||||
|
||||
var _app = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("app");
|
||||
@@ -40,10 +40,10 @@ this.BX.Vote = this.BX.Vote || {};
|
||||
getCopyLinkItem() {
|
||||
const copyLinkItem = super.getCopyLinkItem();
|
||||
const {
|
||||
onclick
|
||||
onClick
|
||||
} = copyLinkItem;
|
||||
copyLinkItem.onclick = () => {
|
||||
onclick();
|
||||
copyLinkItem.onClick = () => {
|
||||
onClick();
|
||||
vote_analytics.VoteAnalytics.copyLink(this.context.dialogId, this.context.id, 'message_link');
|
||||
};
|
||||
return copyLinkItem;
|
||||
@@ -53,8 +53,9 @@ this.BX.Vote = this.BX.Vote || {};
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
text: main_core.Loc.getMessage('VOTE_REVOKE'),
|
||||
onclick: () => {
|
||||
title: main_core.Loc.getMessage('VOTE_REVOKE'),
|
||||
icon: ui_iconSet_api_core.Outline.UNDO,
|
||||
onClick: () => {
|
||||
main_core_events.EventEmitter.emit('vote:message-menu:revoke-vote', {
|
||||
entityId: this.context.id
|
||||
});
|
||||
@@ -67,8 +68,9 @@ this.BX.Vote = this.BX.Vote || {};
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
text: main_core.Loc.getMessage('VOTE_POPUP_BTN_COMPLETE'),
|
||||
onclick: () => {
|
||||
title: main_core.Loc.getMessage('VOTE_POPUP_BTN_COMPLETE'),
|
||||
icon: ui_iconSet_api_core.Outline.CHATS_WITH_CHECK,
|
||||
onClick: () => {
|
||||
main_core_events.EventEmitter.emit('vote:message-menu:complete-vote', {
|
||||
entityId: this.context.id
|
||||
});
|
||||
@@ -81,8 +83,9 @@ this.BX.Vote = this.BX.Vote || {};
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
text: main_core.Loc.getMessage('VOTE_SHOW_RESULTS'),
|
||||
onclick: () => {
|
||||
title: main_core.Loc.getMessage('VOTE_SHOW_RESULTS'),
|
||||
icon: ui_iconSet_api_core.Outline.POLL,
|
||||
onClick: () => {
|
||||
main_core_events.EventEmitter.emit('vote:message-menu:results-vote', {
|
||||
entityId: this.context.id
|
||||
});
|
||||
@@ -765,5 +768,5 @@ this.BX.Vote = this.BX.Vote || {};
|
||||
|
||||
exports.VoteDisplay = VoteDisplay;
|
||||
|
||||
}((this.BX.Vote.Component = this.BX.Vote.Component || {}),BX.Messenger.v2.Const,BX.Vote.Service,BX.Vote.Component,BX.Event,BX.Messenger.v2.Lib,BX.Vote,BX,BX.Vue3.Directives,BX.Vote,BX.Main,BX.UI.Vue3.Components));
|
||||
}((this.BX.Vote.Component = this.BX.Vote.Component || {}),BX.Messenger.v2.Const,BX.Vote.Service,BX.Vote.Component,BX.Event,BX.Messenger.v2.Lib,BX.UI.IconSet,BX.Vote,BX,BX.Vue3.Directives,BX.Vote,BX.Main,BX.UI.Vue3.Components));
|
||||
//# sourceMappingURL=vote.bundle.js.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,10 +1,12 @@
|
||||
import { EventEmitter } from 'main.core.events';
|
||||
import { Loc } from 'main.core';
|
||||
import { type MenuItem, MessageMenu } from 'im.v2.lib.menu';
|
||||
import { MessageMenu } from 'im.v2.lib.menu';
|
||||
import { Outline as OutlineIcons } from 'ui.icon-set.api.core';
|
||||
|
||||
import { VoteApplication } from 'vote.application';
|
||||
import { VoteAnalytics } from 'vote.analytics';
|
||||
import type { VoteElementState, QuestionElementState } from 'vote.store.vote';
|
||||
import type { MenuItemOptions } from 'ui.system.menu';
|
||||
|
||||
export class VoteMessageMenu extends MessageMenu
|
||||
{
|
||||
@@ -16,7 +18,7 @@ export class VoteMessageMenu extends MessageMenu
|
||||
this.#app = VoteApplication.getInstance();
|
||||
}
|
||||
|
||||
getMenuItems(): MenuItem[]
|
||||
getMenuItems(): MenuItemOptions | null[]
|
||||
{
|
||||
return [
|
||||
this.getReplyItem(),
|
||||
@@ -30,19 +32,19 @@ export class VoteMessageMenu extends MessageMenu
|
||||
];
|
||||
}
|
||||
|
||||
getCopyLinkItem(): MenuItem
|
||||
getCopyLinkItem(): MenuItemOptions
|
||||
{
|
||||
const copyLinkItem = super.getCopyLinkItem();
|
||||
const { onclick } = copyLinkItem;
|
||||
copyLinkItem.onclick = () => {
|
||||
onclick();
|
||||
const { onClick } = copyLinkItem;
|
||||
copyLinkItem.onClick = () => {
|
||||
onClick();
|
||||
VoteAnalytics.copyLink(this.context.dialogId, this.context.id, 'message_link');
|
||||
};
|
||||
|
||||
return copyLinkItem;
|
||||
}
|
||||
|
||||
getRevokeItem(): ?MenuItem
|
||||
getRevokeItem(): ?MenuItemOptions
|
||||
{
|
||||
if (!this.#canRevokeVote())
|
||||
{
|
||||
@@ -50,15 +52,16 @@ export class VoteMessageMenu extends MessageMenu
|
||||
}
|
||||
|
||||
return {
|
||||
text: Loc.getMessage('VOTE_REVOKE'),
|
||||
onclick: () => {
|
||||
title: Loc.getMessage('VOTE_REVOKE'),
|
||||
icon: OutlineIcons.UNDO,
|
||||
onClick: () => {
|
||||
EventEmitter.emit('vote:message-menu:revoke-vote', { entityId: this.context.id });
|
||||
this.close();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
getCompleteItem(): ?MenuItem
|
||||
getCompleteItem(): ?MenuItemOptions
|
||||
{
|
||||
if (!this.#canCompleteVote())
|
||||
{
|
||||
@@ -66,15 +69,16 @@ export class VoteMessageMenu extends MessageMenu
|
||||
}
|
||||
|
||||
return {
|
||||
text: Loc.getMessage('VOTE_POPUP_BTN_COMPLETE'),
|
||||
onclick: () => {
|
||||
title: Loc.getMessage('VOTE_POPUP_BTN_COMPLETE'),
|
||||
icon: OutlineIcons.CHATS_WITH_CHECK,
|
||||
onClick: () => {
|
||||
EventEmitter.emit('vote:message-menu:complete-vote', { entityId: this.context.id });
|
||||
this.close();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
getShowResultsItem(): ?MenuItem
|
||||
getShowResultsItem(): ?MenuItemOptions
|
||||
{
|
||||
if (!this.#canShowResults())
|
||||
{
|
||||
@@ -82,8 +86,9 @@ export class VoteMessageMenu extends MessageMenu
|
||||
}
|
||||
|
||||
return {
|
||||
text: Loc.getMessage('VOTE_SHOW_RESULTS'),
|
||||
onclick: () => {
|
||||
title: Loc.getMessage('VOTE_SHOW_RESULTS'),
|
||||
icon: OutlineIcons.POLL,
|
||||
onClick: () => {
|
||||
EventEmitter.emit('vote:message-menu:results-vote', { entityId: this.context.id });
|
||||
this.close();
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$arModuleVersion = [
|
||||
"VERSION" => "25.500.0",
|
||||
"VERSION_DATE" => "2025-06-04 16:04:00"
|
||||
"VERSION" => "25.600.0",
|
||||
"VERSION_DATE" => "2025-07-04 16:48:00"
|
||||
];
|
||||
|
||||
@@ -286,4 +286,14 @@ class AttachedVote extends Controller
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function writeToLogException(\Throwable $e): void
|
||||
{
|
||||
if ($e instanceof AccessDeniedException)
|
||||
{
|
||||
return; // do not write to error log access denied errors
|
||||
}
|
||||
|
||||
parent::writeToLogException($e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user