Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/calendar/sync/interface/src/ |
Upload File : |
// @flow 'use strict'; import SyncButton from "./controls/syncbutton"; import {EventEmitter} from "main.core.events"; import "./css/syncinterface.css" export default class SyncInterface extends EventEmitter { constructor(options) { super(); this.setEventNamespace('BX.Calendar.Sync.Interface.SyncInterface'); this.options = options; } createSyncButton() { this.syncButton = new SyncButton(this.options); this.syncButton.createButton(); EventEmitter.subscribe('BX.Calendar.Sync.Interface.SyncStatusPopup:onRefresh', event => { this.refreshData(); }); } refreshData() { if (this.syncButton) { BX.ajax.runAction('calendar.api.calendarajax.updateConnection', { data: { userId: this.options.userId, type: 'user', } }).then(response => { this.syncButton.refreshData(); this.options.calendar.reload(); }); } } }