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/catalog/store-enable-wizard/src/ |
Upload File : |
import { Extension } from 'main.core'; import { Popup } from './popup'; import 'ui.buttons'; const PopupField = { props: { isLoading: { type: Boolean, }, isShown: { type: Boolean, }, primaryButtonText: { type: String, }, title: { type: String, }, texts: { type: Array, }, }, created() { this.popup = new Popup({ helpCode: this.getSetting('availableModes').length > 1 ? '20233748' : '15992592', title: this.title, texts: this.texts, primaryButtonText: this.primaryButtonText, secondaryButtonText: this.$Bitrix.Loc.getMessage('CATALOG_INVENTORY_MANAGEMENT_POPUP_BUTTON_CANCEL'), events: { onPrimaryClick: () => this.$emit('enable'), onSecondaryClick: () => this.popup.show(false), onClose: () => this.$emit('cancel'), }, }); }, methods: { getSetting(name) { return Extension.getSettings('catalog.store-enable-wizard').get(name); }, }, watch: { isLoading(newValue) { this.popup.load(newValue); }, isShown(newValue) { this.popup.show(newValue); }, }, template: '', }; export { PopupField, };